RDMA/bnxt_re/qplib_sp: Use true and false for boolean values
Subsystems (2)
PATCH 1/1 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]>
--- drivers/infiniband/hw/bnxt_re/qplib_sp.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/infiniband/hw/bnxt_re/qplib_sp.c +1 -1
@@ -154,7 +154,7 @@ int bnxt_qplib_get_dev_attr(struct bnxt_qplib_rcfw *rcfw, attr->tqm_alloc_reqs[i *4 +3 ] = *(++tqm_alloc); } - attr->is_atomic =0 ; + attr->is_atomic = false; bail:bnxt_qplib_rcfw_free_sbuf (rcfw, sbuf);return rc;
Signature · 1 line
2.7.4
Quoted 5 lines · Gustavo A. R. Silva
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]>
Thanks.
Acked-by Selvin Xavier <[email protected]>
Quoted 20 lines
--- drivers/infiniband/hw/bnxt_re/qplib_sp.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)drivers/infiniband/hw/bnxt_re/qplib_sp.c +1
-2@@ -154,7 +154,7 @@ int bnxt_qplib_get_dev_attr(struct bnxt_qplib_rcfw *rcfw, attr->tqm_alloc_reqs[i *4 +3 ] = *(++tqm_alloc); } - attr->is_atomic =0 ; + attr->is_atomic = false; bail:bnxt_qplib_rcfw_free_sbuf (rcfw, sbuf);return rc; --2.7.4
Jason Gunthorpe
AppliedQuoted 9 lines · Gustavo A. R. Silva
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]>--- drivers/infiniband/hw/bnxt_re/qplib_sp.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
Applied to for-next, thanks
Jason