From: Dan Carpenter Date: Thu, 23 Feb 2017 10:40:16 +0000 (+0300) Subject: RDMA/ocrdma: fix a type issue in ocrdma_put_pd_num() X-Git-Tag: v4.14-rc1~1237^2~8 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=004d18ea99b0f3b7b3d5790e4dc5ca7d5238706d;p=platform%2Fkernel%2Flinux-rpi.git RDMA/ocrdma: fix a type issue in ocrdma_put_pd_num() We want to return zero on success or negative error codes. The type should be int and not u8. Signed-off-by: Dan Carpenter Reviewed-by: Yuval Shaia Signed-off-by: Doug Ledford --- diff --git a/drivers/infiniband/hw/ocrdma/ocrdma_verbs.c b/drivers/infiniband/hw/ocrdma/ocrdma_verbs.c index bc9fb14..c52edea 100644 --- a/drivers/infiniband/hw/ocrdma/ocrdma_verbs.c +++ b/drivers/infiniband/hw/ocrdma/ocrdma_verbs.c @@ -372,7 +372,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;