From patchwork Thu Jul 5 22:59:39 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: 10510425 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 5013B600F5 for ; Thu, 5 Jul 2018 23:00:25 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 3EC0B2807B for ; Thu, 5 Jul 2018 23:00:25 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 322BD280FC; Thu, 5 Jul 2018 23:00:25 +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 20F2C2807B for ; Thu, 5 Jul 2018 23:00:24 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753898AbeGEXAV (ORCPT ); Thu, 5 Jul 2018 19:00:21 -0400 Received: from esa6.hgst.iphmx.com ([216.71.154.45]:32384 "EHLO esa6.hgst.iphmx.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753251AbeGEW7k (ORCPT ); Thu, 5 Jul 2018 18:59:40 -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=1530831580; x=1562367580; h=from:to:cc:subject:date:message-id; bh=aFXA8D4fuDz427UboM4fOlwxO2BuVVmsmlv6EPakCSg=; b=T+H7dCZLG88km736C1GmC+HptCsqLEr0MWjtW42l4nxyRAf0j0yx4Knz JshFyh4YUM1it2DRQU9fV+Gyz43j3PUGiD1VDtSaMWJ5+Jhab7F9eB7Gw ISqVhr0Z1oBosKWAbhb5ntKxPavTxIjDNFdX9DzOTRrQgYOpFDiMXuDIC bNhtfr3hp9/qi0Bv5cnJ7Utm76gdLi0zxWbuGXfESXK6dsVNyuet24b/A p2HYS1tOrwNg0SZWmlJERq+PdWvZowysXH6TcFOEjKXEVBa3czVfUxE+Q K/IM6K/lgVOPgbopyt2aIz4xQw4/ioPRiTFeDsVfTpcs2JvCI8Q2Zuz2m w==; X-IronPort-AV: E=Sophos;i="5.51,314,1526313600"; d="scan'208";a="84612169" 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; 06 Jul 2018 06:59:40 +0800 Received: from uls-op-cesaip01.wdc.com ([10.248.3.36]) by uls-op-cesaep02.wdc.com with ESMTP; 05 Jul 2018 15:48:40 -0700 Received: from thinkpad-bart.sdcorp.global.sandisk.com ([10.111.67.248]) by uls-op-cesaip01.wdc.com with ESMTP; 05 Jul 2018 15:59:39 -0700 From: Bart Van Assche To: Jason Gunthorpe Cc: Doug Ledford , linux-rdma@vger.kernel.org, Bart Van Assche , Parav Pandit , Leon Romanovsky Subject: [PATCH] RDMA/rxe: Remove unreachable code from rxe_create_ah() Date: Thu, 5 Jul 2018 15:59:39 -0700 Message-Id: <20180705225939.9741-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 Fixes: 47ec38666210 ("RDMA: Convert drivers to use sgid_attr instead of sgid_index") Signed-off-by: Bart Van Assche Cc: Parav Pandit Cc: Leon Romanovsky --- drivers/infiniband/sw/rxe/rxe_verbs.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/drivers/infiniband/sw/rxe/rxe_verbs.c b/drivers/infiniband/sw/rxe/rxe_verbs.c index 1272903d0fe3..0d5f0ad3cd02 100644 --- a/drivers/infiniband/sw/rxe/rxe_verbs.c +++ b/drivers/infiniband/sw/rxe/rxe_verbs.c @@ -255,8 +255,6 @@ static struct ib_ah *rxe_create_ah(struct ib_pd *ibpd, rxe_init_av(rxe, attr, &ah->av); return &ah->ibah; - rxe_drop_ref(pd); - rxe_drop_ref(ah); err1: return ERR_PTR(err); }