Skip to content

Commit 6323158

Browse files
GustavoARSilvajgunthorpe
authored andcommitted
RDMA/bnxt_re/qplib_sp: Use true and false for boolean values
Assign true or false to boolean variables instead of an integer value. This issue was detected with the help of Coccinelle. Signed-off-by: Gustavo A. R. Silva <[email protected]> Acked-by: Selvin Xavier <[email protected]> Signed-off-by: Jason Gunthorpe <[email protected]>
1 parent fbd3681 commit 6323158

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/infiniband/hw/bnxt_re/qplib_sp.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -153,7 +153,7 @@ int bnxt_qplib_get_dev_attr(struct bnxt_qplib_rcfw *rcfw,
153153
attr->tqm_alloc_reqs[i * 4 + 3] = *(++tqm_alloc);
154154
}
155155

156-
attr->is_atomic = 0;
156+
attr->is_atomic = false;
157157
bail:
158158
bnxt_qplib_rcfw_free_sbuf(rcfw, sbuf);
159159
return rc;

0 commit comments

Comments
 (0)