From mboxrd@z Thu Jan 1 00:00:00 1970 From: Yuval Shaia Subject: Re: [patch] RDMA/ocrdma: fix a type issue in ocrdma_put_pd_num() Date: Sun, 26 Feb 2017 16:26:59 +0200 Message-ID: <20170226142657.GA4053@yuval-lap> References: <20170223104016.GA27526@mwanda> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Return-path: Content-Disposition: inline In-Reply-To: <20170223104016.GA27526@mwanda> Sender: linux-rdma-owner-u79uwXL29TY76Z2rM5mHXA@public.gmane.org To: Dan Carpenter Cc: Selvin Xavier , Devesh Sharma , Doug Ledford , Sean Hefty , Hal Rosenstock , linux-rdma-u79uwXL29TY76Z2rM5mHXA@public.gmane.org, kernel-janitors-u79uwXL29TY76Z2rM5mHXA@public.gmane.org List-Id: linux-rdma@vger.kernel.org On Thu, Feb 23, 2017 at 01:40:16PM +0300, Dan Carpenter wrote: > We want to return zero on success or negative error codes. The type > should be int and not u8. > > Signed-off-by: Dan Carpenter > > diff --git a/drivers/infiniband/hw/ocrdma/ocrdma_verbs.c b/drivers/infiniband/hw/ocrdma/ocrdma_verbs.c > index e06ad7250963..b1b075763eaa 100644 > --- a/drivers/infiniband/hw/ocrdma/ocrdma_verbs.c > +++ b/drivers/infiniband/hw/ocrdma/ocrdma_verbs.c > @@ -371,7 +371,7 @@ static int _ocrdma_pd_mgr_put_bitmap(struct ocrdma_dev *dev, u16 pd_id, > return 0; > } > > -static u8 ocrdma_put_pd_num(struct ocrdma_dev *dev, u16 pd_id, > +static int ocrdma_put_pd_num(struct ocrdma_dev *dev, u16 pd_id, > bool dpp_pool) > { > int status; > -- Reviewed-by: Yuval Shaia > To unsubscribe from this list: send the line "unsubscribe linux-rdma" in > the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org > More majordomo info at http://vger.kernel.org/majordomo-info.html -- To unsubscribe from this list: send the line "unsubscribe linux-rdma" in the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org More majordomo info at http://vger.kernel.org/majordomo-info.html