From patchwork Thu Jul 5 17:51:03 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Bart Van Assche X-Patchwork-Id: 10510083 X-Patchwork-Delegate: jgg@ziepe.ca Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id 8AE05600F5 for ; Thu, 5 Jul 2018 17:51:06 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 73FFA1FFCD for ; Thu, 5 Jul 2018 17:51:06 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 6886C223B3; Thu, 5 Jul 2018 17:51:06 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-7.8 required=2.0 tests=BAYES_00,DKIM_SIGNED, MAILING_LIST_MULTI, RCVD_IN_DNSWL_HI, T_DKIM_INVALID autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id ED4F521EEB for ; Thu, 5 Jul 2018 17:51:05 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753450AbeGERvF (ORCPT ); Thu, 5 Jul 2018 13:51:05 -0400 Received: from esa4.hgst.iphmx.com ([216.71.154.42]:12397 "EHLO esa4.hgst.iphmx.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753442AbeGERvE (ORCPT ); Thu, 5 Jul 2018 13:51:04 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=wdc.com; i=@wdc.com; q=dns/txt; s=dkim.wdc.com; t=1530813065; x=1562349065; h=from:to:cc:subject:date:message-id; bh=kEeKQ5cip3sFUstphNnVO51cd5hDTnhLWOhPKbnrbn4=; b=XkEvXIW7r27jBsUeLRUnUAqK569Q2TW618nKiQ/CJK1qVdvjjTpiuT1X nNm9Ltv+/bUabuBZapR+IaAFV10MnRAlUMXXc3UkCPQpN8D6iriqw62DA YpWehvr+4+W5y0cFs1Ws5OTCtSk2eWZblnAiceRqBUw4SFYXJfe4/ji3c zaitm5/XkMLogFXs7bfA2eUzUe+TA3I5Jm2JVinuIVdGH9ZykSaKFbb5o GrOWMikmHTkRQJcyc3UGToD7zuR+YLa1IF5h2q7yIiTOrc1bRf6Yl59Fd YOcwF+BquCTZjOOTLZS1UTKGJpDHPJSI2IDR896yJ3mOQWKcTFUqW7IRu g==; X-IronPort-AV: E=Sophos;i="5.51,313,1526313600"; d="scan'208";a="83328045" Received: from uls-op-cesaip02.wdc.com (HELO uls-op-cesaep02.wdc.com) ([199.255.45.15]) by ob1.hgst.iphmx.com with ESMTP; 06 Jul 2018 01:51:05 +0800 Received: from uls-op-cesaip02.wdc.com ([10.248.3.37]) by uls-op-cesaep02.wdc.com with ESMTP; 05 Jul 2018 10:40:04 -0700 Received: from thinkpad-bart.sdcorp.global.sandisk.com ([10.111.67.248]) by uls-op-cesaip02.wdc.com with ESMTP; 05 Jul 2018 10:51:04 -0700 From: Bart Van Assche To: Jason Gunthorpe Cc: Doug Ledford , linux-rdma@vger.kernel.org, Bart Van Assche Subject: [PATCH] RDMA/core: Remove set-but-not-used variables Date: Thu, 5 Jul 2018 10:51:03 -0700 Message-Id: <20180705175103.27668-1-bart.vanassche@wdc.com> X-Mailer: git-send-email 2.18.0 Sender: linux-rdma-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-rdma@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP Signed-off-by: Bart Van Assche --- drivers/infiniband/core/cache.c | 6 ------ 1 file changed, 6 deletions(-) diff --git a/drivers/infiniband/core/cache.c b/drivers/infiniband/core/cache.c index c5fa67c72f23..0bee1f4b914e 100644 --- a/drivers/infiniband/core/cache.c +++ b/drivers/infiniband/core/cache.c @@ -824,12 +824,9 @@ void ib_cache_gid_set_default_gid(struct ib_device *ib_dev, u8 port, { union ib_gid gid = { }; struct ib_gid_attr gid_attr; - struct ib_gid_table *table; unsigned int gid_type; unsigned long mask; - table = rdma_gid_table(ib_dev, port); - mask = GID_ATTR_FIND_MASK_GID_TYPE | GID_ATTR_FIND_MASK_DEFAULT | GID_ATTR_FIND_MASK_NETDEV; @@ -1293,13 +1290,10 @@ static void ib_cache_update(struct ib_device *device, struct ib_pkey_cache *pkey_cache = NULL, *old_pkey_cache; int i; int ret; - struct ib_gid_table *table; if (!rdma_is_port_valid(device, port)) return; - table = rdma_gid_table(device, port); - tprops = kmalloc(sizeof *tprops, GFP_KERNEL); if (!tprops) return;