From patchwork Thu Jun 4 12:12:51 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Vangelis Tasoulas X-Patchwork-Id: 6546171 X-Patchwork-Delegate: hal@mellanox.com Return-Path: X-Original-To: patchwork-linux-rdma@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork2.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.29.136]) by patchwork2.web.kernel.org (Postfix) with ESMTP id 28BF2C0020 for ; Thu, 4 Jun 2015 12:13:34 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 21A86207B3 for ; Thu, 4 Jun 2015 12:13:33 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 65B7F204D9 for ; Thu, 4 Jun 2015 12:13:28 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752773AbbFDMN1 (ORCPT ); Thu, 4 Jun 2015 08:13:27 -0400 Received: from mail-la0-f54.google.com ([209.85.215.54]:36393 "EHLO mail-la0-f54.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751860AbbFDMN0 (ORCPT ); Thu, 4 Jun 2015 08:13:26 -0400 Received: by laei3 with SMTP id i3so30240637lae.3 for ; Thu, 04 Jun 2015 05:13:25 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:cc:subject:date:message-id; bh=qtqXcClll3A6ZXi/O4ed79EUxOXcSEHBac4r2f23r2Y=; b=lzHjEJi3AJD8OlYYAF8fVAiknNHuyGVz+hIGiQJcH8gce+Lxk0KlEDpqOSEg7c+RBL t6b1ho2wJIe9ZFmXgMB1nmXWQh7/HgehgkHt1CvlCOnVLZS+6wdxYN53W1l7tENeI+FS 6VbgN5C3IoeFaiXtEx8/4xXaK3cuBpgrUZTwjL/oCYxznssIj0qBAInVEXU7fD/Vx+Ru jO7vnQHggfIMzxCNg8lHxFBD+a+fAPqTNrI0WnephA5FlxxFFCLJWKB1juTgMQCtl9aV zOKqUmTxQyDw1/Sd8duobUjwoKtG4tGA9pZwYyDuyORVZL0E1WIEJpAkKU4m9w2WXeN5 MOvg== X-Gm-Message-State: ALoCoQkO+99WOyvv/tCxM4L09QevUspCMvA2uOZ8KV8372qt/u5QOJO/6e7s7vCOCaS3Jfw6Ouaj X-Received: by 10.152.44.166 with SMTP id f6mr37272839lam.86.1433420005280; Thu, 04 Jun 2015 05:13:25 -0700 (PDT) Received: from Nephele.simula.no ([77.88.71.158]) by mx.google.com with ESMTPSA id wm10sm665296lbb.26.2015.06.04.05.13.23 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Thu, 04 Jun 2015 05:13:24 -0700 (PDT) From: Vangelis To: linux-rdma@vger.kernel.org Cc: Vangelis Subject: [PATCH] Removed *p_ftree from function *sw_create(). Date: Thu, 4 Jun 2015 14:12:51 +0200 Message-Id: <1433419971-29067-1-git-send-email-vangelis@simula.no> X-Mailer: git-send-email 1.9.1 Sender: linux-rdma-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-rdma@vger.kernel.org X-Spam-Status: No, score=-6.9 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_HI, T_RP_MATCHES_RCVD, UNPARSEABLE_RELAY autolearn=ham version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP ftree_fabric_t *p_ftree is not used anywhere in OpenSM's function sw_create(). --- opensm/osm_ucast_ftree.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/opensm/osm_ucast_ftree.c b/opensm/osm_ucast_ftree.c index f646bd0..3699d95 100644 --- a/opensm/osm_ucast_ftree.c +++ b/opensm/osm_ucast_ftree.c @@ -528,8 +528,7 @@ static void port_group_add_port(IN ftree_port_group_t * p_group, ** ***************************************************/ -static ftree_sw_t *sw_create(IN ftree_fabric_t * p_ftree, - IN osm_switch_t * p_osm_sw) +static ftree_sw_t *sw_create(IN osm_switch_t * p_osm_sw) { ftree_sw_t *p_sw; uint8_t ports_num; @@ -1089,7 +1088,7 @@ static void fabric_add_sw(ftree_fabric_t * p_ftree, osm_switch_t * p_osm_sw) CL_ASSERT(osm_node_get_type(p_osm_sw->p_node) == IB_NODE_TYPE_SWITCH); - p_sw = sw_create(p_ftree, p_osm_sw); + p_sw = sw_create(p_osm_sw); if (!p_sw) return;