From patchwork Tue Jul 31 15:08:15 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: 10550895 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-2.web.codeaurora.org (Postfix) with ESMTP id 8D45A14E0 for ; Tue, 31 Jul 2018 15:08:30 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 7D8CF2B04D for ; Tue, 31 Jul 2018 15:08:30 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 71B3B2B055; Tue, 31 Jul 2018 15:08:30 +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 4B33F2B04D for ; Tue, 31 Jul 2018 15:08:29 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1732443AbeGaQtN (ORCPT ); Tue, 31 Jul 2018 12:49:13 -0400 Received: from esa1.hgst.iphmx.com ([68.232.141.245]:47953 "EHLO esa1.hgst.iphmx.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727397AbeGaQtN (ORCPT ); Tue, 31 Jul 2018 12:49:13 -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=1533049708; x=1564585708; h=from:to:cc:subject:date:message-id; bh=+xm6aqOFDK6ZguJ5yoZj0mwPWjzZUzqLmVbg5MQ4rmA=; b=P3f30Zz2RGEl91+kqVVYSCsOaY9w2oA+IFRqLJu8eXOshIYSrxTjYsVq FF2Y5H1nZ7xqVUoMx/L5iR5umOtXZ/KRgTzi1YI+rL3oCuVAPQ1uJbdfG EDK6f4Bi6ExGJTzsESd/WdWpwhVkiTm6pj4X4BzfklrMjVEsg4lH44WxS 8wr25O57IyShujx1cSwmPwPdUuyMB1AWHMC71ChUHzl03G/aJVC2gY1fD ypkM+1R6QcRnCL3miFh19j4O1lMNr3yS7ZcsgkePyxHmd47OGczn3cx7L HlXeRucFoKjX1fJNL9wRWDe11uek8aHfwurVquVI4SpTmz05RZLpz/a6m w==; X-IronPort-AV: E=Sophos;i="5.51,427,1526313600"; d="scan'208";a="189408941" Received: from h199-255-45-15.hgst.com (HELO uls-op-cesaep02.wdc.com) ([199.255.45.15]) by ob1.hgst.iphmx.com with ESMTP; 31 Jul 2018 23:08:15 +0800 Received: from uls-op-cesaip02.wdc.com ([10.248.3.37]) by uls-op-cesaep02.wdc.com with ESMTP; 31 Jul 2018 07:56:06 -0700 Received: from thinkpad-bart.sdcorp.global.sandisk.com ([10.111.67.248]) by uls-op-cesaip02.wdc.com with ESMTP; 31 Jul 2018 08:08:16 -0700 From: Bart Van Assche To: Jason Gunthorpe Cc: Doug Ledford , linux-rdma@vger.kernel.org, Bart Van Assche , Steve Wise , Raju Rangoju Subject: [PATCH] rdma/cxgb4: Remove a set-but-not-used variable Date: Tue, 31 Jul 2018 08:08:15 -0700 Message-Id: <20180731150815.14947-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 This patch avoids that the following warning is reported when building with W=1: drivers/infiniband/hw/cxgb4/cm.c:1860:5: warning: variable 'status' set but not used [-Wunused-but-set-variable] u8 status; ^~~~~~ Fixes: 6a0b6174d35a ("rdma/cxgb4: Add support for kernel mode SRQ's") Signed-off-by: Bart Van Assche Cc: Steve Wise Cc: Raju Rangoju Acked-by: Steve Wise --- drivers/infiniband/hw/cxgb4/cm.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/drivers/infiniband/hw/cxgb4/cm.c b/drivers/infiniband/hw/cxgb4/cm.c index 54f7fbef7880..d7cfa38baad2 100644 --- a/drivers/infiniband/hw/cxgb4/cm.c +++ b/drivers/infiniband/hw/cxgb4/cm.c @@ -1857,10 +1857,8 @@ static void complete_cached_srq_buffers(struct c4iw_ep *ep, u32 srqidx_status) { enum chip_type adapter_type; u32 srqidx; - u8 status; adapter_type = ep->com.dev->rdev.lldi.adapter_type; - status = ABORT_RSS_STATUS_G(be32_to_cpu(srqidx_status)); srqidx = ABORT_RSS_SRQIDX_G(be32_to_cpu(srqidx_status)); /*