From patchwork Thu May 9 15:48:09 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Alex Netes X-Patchwork-Id: 2544581 X-Patchwork-Delegate: hal@mellanox.com Return-Path: X-Original-To: patchwork-linux-rdma@patchwork.kernel.org Delivered-To: patchwork-process-083081@patchwork2.kernel.org Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by patchwork2.kernel.org (Postfix) with ESMTP id 4F231DF24C for ; Thu, 9 May 2013 15:48:22 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755910Ab3EIPsV (ORCPT ); Thu, 9 May 2013 11:48:21 -0400 Received: from mail-ea0-f175.google.com ([209.85.215.175]:61324 "EHLO mail-ea0-f175.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1755838Ab3EIPsU (ORCPT ); Thu, 9 May 2013 11:48:20 -0400 Received: by mail-ea0-f175.google.com with SMTP id q10so1629051eaj.6 for ; Thu, 09 May 2013 08:48:19 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=x-received:sender:from:to:cc:subject:date:message-id:x-mailer :x-gm-message-state; bh=/iJLXvDHbJQnTLJvWohuZad60RT5sMsusSX81eXuR8Y=; b=mbzw17MgWEHszqcJzULbbK2IG/IDDmP6dedMpTeYNFUaaFzizkXnV+b8NWea+kIiXi tM8/MpWIHtYckzbv2/64K/vtQ5gwB75W91kobSwcjsvRZjkgoxdUnfSskT7OLJ0GUIRr ACBYG0ipIVOFIVLHOmb4+IdeoL9MkaOZJjunJEffB9XJulXNCJhl7brHc4CCikaOsGRN HFbK1bGFYCuOj1vw8pKfmlghzhyZK2f4zArsU+ieTkTV3wOS85Ov/a44fneViNWLUiUJ 9LGiBROdUoecVK56yfLkMMCRsejBm72S+W5yxK5yH7xapNcnAcjAfwFOf1sjy0mSBCGZ a7fQ== X-Received: by 10.14.99.198 with SMTP id x46mr30217513eef.38.1368114498897; Thu, 09 May 2013 08:48:18 -0700 (PDT) Received: from localhost (out.voltaire.com. [193.47.165.251]) by mx.google.com with ESMTPSA id bp51sm4982284eeb.5.2013.05.09.08.48.16 for (version=TLSv1.2 cipher=RC4-SHA bits=128/128); Thu, 09 May 2013 08:48:18 -0700 (PDT) From: Alex Netes To: Hal Rosenstock , linux-rdma@vger.kernel.org Cc: Alex Netes Subject: [PATCH] opensm/osm_ucast_dfsssp.c: Fix unused variable in update_mcft() Date: Thu, 9 May 2013 18:48:09 +0300 Message-Id: <1368114489-20424-1-git-send-email-alexne@mellanox.com> X-Mailer: git-send-email 1.7.11.7 X-Gm-Message-State: ALoCoQlinqhxjbFGC3HQPO/ygFa0uKM+KgeyvgIsYzEOMqWtSKcN6G2a4ZGW6ZJm81Wpp4qgN6tz Sender: linux-rdma-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-rdma@vger.kernel.org counter isn't being used. Signed-off-by: Alex Netes --- opensm/osm_ucast_dfsssp.c | 2 -- 1 file changed, 2 deletions(-) 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,