RDMA/ocrdma: fix a type issue in ocrdma_put_pd_num()
Subsystems (3)
PATCH 1/1 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 <[email protected]>
drivers/infiniband/hw/ocrdma/ocrdma_verbs.c +1 -1
@@ -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;
Quoted 10 lines · Dan Carpenter
We want to return zero on success or negative error codes. The type should be int and not u8.
Signed-off-by Dan Carpenter <[email protected]>drivers/infiniband/hw/ocrdma/ocrdma_verbs.c +0
-0
drivers/infiniband/hw/ocrdma/ocrdma_verbs.c static int _ocrdma_pd_mgr_put_bitmap(struct ocrdma_dev *dev, u16 pd_id,
Quoted 9 lines
drivers/infiniband/hw/ocrdma/ocrdma_verbs.c +1
-2@@ -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 <[email protected]>
Quoted 3 lines
To unsubscribe from this list: send the line "unsubscribe linux-rdma" in the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html
Doug Ledford
AppliedQuoted 17 lines · Dan Carpenter
We want to return zero on success or negative error codes. The type should be int and not u8.
Signed-off-by Dan Carpenter <[email protected]>drivers/infiniband/hw/ocrdma/ocrdma_verbs.c +0
-0@@ -371,7 +371,7 @@ static int _ocrdma_pd_mgr_put_bitmap(struct ocrdma_dev *dev, u16 pd_id, return 0; }drivers/infiniband/hw/ocrdma/ocrdma_verbs.c +1
-1-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,
Quoted 3 lines
bool
dpp_pool)
{
int status;
Thanks, applied for -rc.
Signature · 4 lines
Doug Ledford <[email protected]> GPG KeyID: B826A3330E572FDD Key fingerprint = AE6B 1BDA 122B 23B4 265B 1274 B826 A333 0E57 2FDD