diff mbox

opensm/osm_ucast_dfsssp.c: Fix unused variable in update_mcft()

Message ID 1368114489-20424-1-git-send-email-alexne@mellanox.com (mailing list archive)
State Accepted
Delegated to: Hal Rosenstock
Headers show

Commit Message

Alex Netes May 9, 2013, 3:48 p.m. UTC
counter isn't being used.

Signed-off-by: Alex Netes <alexne@mellanox.com>
---
 opensm/osm_ucast_dfsssp.c | 2 --
 1 file changed, 2 deletions(-)

Comments

Hal Rosenstock May 10, 2013, 11:49 a.m. UTC | #1
On 5/9/2013 11:48 AM, Alex Netes wrote:
> counter isn't being used.
> 
> Signed-off-by: Alex Netes <alexne@mellanox.com>

Thanks. Applied.

-- Hal
--
To unsubscribe from this list: send the line "unsubscribe linux-rdma" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
diff mbox

Patch

diff --git a/opensm/osm_ucast_dfsssp.c b/opensm/osm_ucast_dfsssp.c
index be13458..7b77eed 100644
--- a/opensm/osm_ucast_dfsssp.c
+++ b/opensm/osm_ucast_dfsssp.c
@@ -1611,8 +1611,6 @@  static int update_mcft(osm_sm_t * p_sm, vertex_t * adj_list,
 		   the downstream port of the next switch to the mcast table
 		   until we reach the root_sw
 		 */
-		int counter;
-		counter = 0;
 		curr_adj = &adj_list[i];
 		while (curr_adj->sw != root_sw) {
 			/* the used_link is the link that was used in dijkstra to reach this node,