mirror of
https://github.com/fail0verflow/switch-linux.git
synced 2025-05-04 02:34:21 -04:00
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 <dan.carpenter@oracle.com> Reviewed-by: Yuval Shaia <yuval.shaia@oracle.com> Signed-off-by: Doug Ledford <dledford@redhat.com>
This commit is contained in:
parent
ded2602353
commit
004d18ea99
1 changed files with 1 additions and 1 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Reference in a new issue