Received: by 10.223.164.202 with SMTP id h10csp57746wrb; Tue, 7 Nov 2017 02:51:28 -0800 (PST) X-Google-Smtp-Source: ABhQp+SluFrgiR4tGmrZAb26XLcf85RV2KhuTAcG65bmDAz+gzUS/QsR4Endra8hp4QcnoE3oLAR X-Received: by 10.101.81.70 with SMTP id g6mr18059604pgq.97.1510051888143; Tue, 07 Nov 2017 02:51:28 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1510051888; cv=none; d=google.com; s=arc-20160816; b=F7FT4CuFwvQWZvGsDKu08HColFK1amHdZh7dRZHKOmQSZQxOt+IXtdi3W2CEWnKPDs wBDPY+l517PpZAsqCaspTMlUh8rs1uvFwRoqZGf1M+XCttZEOrwJy8edk11ufqr5glUM YbKNsrznOqPUq8uZvk3kKLtWu3KyFX0kydOqq4E3Nm6qxK5uOqRztNSy5Ps6Gxx3AtWu y1/bvoZw8JMMSqNp7P8TN7qTEhelLM8tn1mVDlyb/VIMhrX2+wAqn2ss2QMnp/BCHPDJ XAqDJxoqvAsaCoKStH/Y1NVdUSjjyLX5iEZoHZjPPwTr3IAs+8MEuPaj545zbA8MT6bX Kg3g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:arc-authentication-results; bh=alxP7LPQ/Ghea86C+F/hnZz6vGa5sIMVm5ZI3GdbXAk=; b=h+E2abaK5uJdKcaa/4FPAQiUVEQvrxsX6e7k95r0H1IMBR0JoUVRwZkxo4NsA83pFD n9RP139iUwvF15dvx6rXNknGZ6bFyJIEMPRYgc4AeP179zCckDAgdaYNdO/nvi8n8jgG uN/XY7vyIqmFNu4NELqbQm6WbD+9z1RB8UvQwpmiAsfTT+rVlM2py5YcPqj6FfEWlSTY 0N7io8vuIjIu05sdSdzjUHBYIa9DRXy3oAEpavZT1vOcN9YbsIkoAs6+rmyyKVO48Z5q TeTeMKUJB6Et8yTgTxVH5GrJJtOXKpmvKOXmrWbIVIKHdksFvA3RxDzYovNUfbAzXXF3 +Muw== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=oracle.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id az2si823395plb.81.2017.11.07.02.51.15; Tue, 07 Nov 2017 02:51:28 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=oracle.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754660AbdKGGcA (ORCPT + 91 others); Tue, 7 Nov 2017 01:32:00 -0500 Received: from aserp1040.oracle.com ([141.146.126.69]:43326 "EHLO aserp1040.oracle.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754019AbdKGGb6 (ORCPT ); Tue, 7 Nov 2017 01:31:58 -0500 Received: from aserv0022.oracle.com (aserv0022.oracle.com [141.146.126.234]) by aserp1040.oracle.com (Sentrion-MTA-4.3.2/Sentrion-MTA-4.3.2) with ESMTP id vA76VgnI018278 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Tue, 7 Nov 2017 06:31:43 GMT Received: from userv0122.oracle.com (userv0122.oracle.com [156.151.31.75]) by aserv0022.oracle.com (8.14.4/8.14.4) with ESMTP id vA76VgCw018846 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Tue, 7 Nov 2017 06:31:42 GMT Received: from abhmp0007.oracle.com (abhmp0007.oracle.com [141.146.116.13]) by userv0122.oracle.com (8.14.4/8.14.4) with ESMTP id vA76Vfla027231; Tue, 7 Nov 2017 06:31:41 GMT Received: from yuvallap (/77.138.186.148) by default (Oracle Beehive Gateway v4.0) with ESMTP ; Mon, 06 Nov 2017 22:31:41 -0800 Date: Tue, 7 Nov 2017 08:31:36 +0200 From: Yuval Shaia To: "Gustavo A. R. Silva" Cc: Selvin Xavier , Devesh Sharma , Doug Ledford , linux-rdma@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH] IB/ocrdma_hw: remove unnecessary code in ocrdma_mbx_dealloc_lkey Message-ID: <20171107063135.GA3815@yuvallap> References: <20171106143514.GA19786@embeddedor.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20171106143514.GA19786@embeddedor.com> User-Agent: Mutt/1.9.1 (2017-09-22) X-Source-IP: aserv0022.oracle.com [141.146.126.234] Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, Nov 06, 2017 at 08:35:14AM -0600, Gustavo A. R. Silva wrote: > Check on return value and goto label mbx_err are unnecessary. > > Addresses-Coverity-ID: 1268780 What's that? > Signed-off-by: Gustavo A. R. Silva > --- > drivers/infiniband/hw/ocrdma/ocrdma_hw.c | 4 +--- > 1 file changed, 1 insertion(+), 3 deletions(-) > > diff --git a/drivers/infiniband/hw/ocrdma/ocrdma_hw.c b/drivers/infiniband/hw/ocrdma/ocrdma_hw.c > index f8c14c7..db02bbb 100644 > --- a/drivers/infiniband/hw/ocrdma/ocrdma_hw.c > +++ b/drivers/infiniband/hw/ocrdma/ocrdma_hw.c > @@ -1956,9 +1956,7 @@ int ocrdma_mbx_dealloc_lkey(struct ocrdma_dev *dev, int fr_mr, u32 lkey) > cmd->lkey = lkey; > cmd->rsvd_frmr = fr_mr ? 1 : 0; > status = ocrdma_mbx_cmd(dev, (struct ocrdma_mqe *)cmd); > - if (status) > - goto mbx_err; > -mbx_err: > + > kfree(cmd); > return status; Reviewed-by: Yuval Shaia > } > -- > 2.7.4 > > -- > To unsubscribe from this list: send the line "unsubscribe linux-rdma" in > the body of a message to majordomo@vger.kernel.org > More majordomo info at http://vger.kernel.org/majordomo-info.html From 1583327717666520187@xxx Mon Nov 06 14:36:18 +0000 2017 X-GM-THRID: 1583327717666520187 X-Gmail-Labels: Inbox,Category Forums,HistoricalUnread