Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932687AbbEZQAN (ORCPT ); Tue, 26 May 2015 12:00:13 -0400 Received: from mail-pd0-f176.google.com ([209.85.192.176]:34286 "EHLO mail-pd0-f176.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752447AbbEZQAH (ORCPT ); Tue, 26 May 2015 12:00:07 -0400 From: Devesh Sharma References: <1432238824-16953-1-git-send-email-laurent.navet@gmail.com> <1432644310.28905.95.camel@redhat.com> In-Reply-To: <1432644310.28905.95.camel@redhat.com> MIME-Version: 1.0 X-Mailer: Microsoft Outlook 14.0 Thread-Index: AQGG54EnLawTKlSTY+JnB8vDAxKOMQKdYLzlngzf9hA= Date: Tue, 26 May 2015 21:30:03 +0530 Message-ID: Subject: RE: [PATCH] RDMA/ocrdma: remove unneeded tests To: Doug Ledford , Laurent Navet Cc: selvin.xavier@emulex.com, devesh.sharma@emulex.com, mitesh.ahuja@emulex.com, sean.hefty@intel.com, hal.rosenstock@gmail.com, linux-rdma@vger.kernel.org, linux-kernel@vger.kernel.org Content-Type: text/plain; charset=UTF-8 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 2085 Lines: 62 Although already applied, Thanks Laurent and Doug. Acked-By: Devesh Sharma > -----Original Message----- > From: Doug Ledford [mailto:dledford@redhat.com] > Sent: Tuesday, May 26, 2015 6:15 PM > To: Laurent Navet > Cc: selvin.xavier@emulex.com; devesh.sharma@emulex.com; > mitesh.ahuja@emulex.com; sean.hefty@intel.com; hal.rosenstock@gmail.com; > linux-rdma@vger.kernel.org; linux-kernel@vger.kernel.org > Subject: Re: [PATCH] RDMA/ocrdma: remove unneeded tests > > On Thu, 2015-05-21 at 22:07 +0200, Laurent Navet wrote: > > The same code is executed regardless status value, so these tests can > > be removed. > > Fix Coverity CID 1271151 and 1268788 > > Thanks, applied for 4.2. > > > Signed-off-by: Laurent Navet > > --- > > drivers/infiniband/hw/ocrdma/ocrdma_hw.c | 6 ------ > > 1 file changed, 6 deletions(-) > > > > diff --git a/drivers/infiniband/hw/ocrdma/ocrdma_hw.c > > b/drivers/infiniband/hw/ocrdma/ocrdma_hw.c > > index 0c9e959..e748090 100644 > > --- a/drivers/infiniband/hw/ocrdma/ocrdma_hw.c > > +++ b/drivers/infiniband/hw/ocrdma/ocrdma_hw.c > > @@ -1960,9 +1960,6 @@ static int ocrdma_mbx_reg_mr_cont(struct > ocrdma_dev *dev, > > upper_32_bits(hwmr->pbl_table[i + pbl_offset].pa); > > } > > status = ocrdma_mbx_cmd(dev, (struct ocrdma_mqe *)cmd); > > - if (status) > > - goto mbx_err; > > -mbx_err: > > kfree(cmd); > > return status; > > } > > @@ -3044,9 +3041,6 @@ static int ocrdma_mbx_modify_eqd(struct > ocrdma_dev *dev, struct ocrdma_eq *eq, > > (eq[i].aic_obj.prev_eqd * 65)/100; > > } > > status = ocrdma_mbx_cmd(dev, (struct ocrdma_mqe *)cmd); > > - if (status) > > - goto mbx_err; > > -mbx_err: > > kfree(cmd); > > return status; > > } > > > -- > Doug Ledford > GPG KeyID: 0E572FDD -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/