From: Gustavo A. R. Silva Date: Mon, 5 Mar 2018 23:36:47 +0000 (-0600) Subject: RDMA/bnxt_re/qplib_sp: Use true and false for boolean values X-Git-Tag: v4.19~1272^2~151 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=63231585a6167840172cf7e9045b43ced8a0b6c2;p=platform%2Fkernel%2Flinux-rpi.git 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 Acked-by: Selvin Xavier Signed-off-by: Jason Gunthorpe --- diff --git a/drivers/infiniband/hw/bnxt_re/qplib_sp.c b/drivers/infiniband/hw/bnxt_re/qplib_sp.c index 03057983341f..cf0539e1d31f 100644 --- a/drivers/infiniband/hw/bnxt_re/qplib_sp.c +++ b/drivers/infiniband/hw/bnxt_re/qplib_sp.c @@ -153,7 +153,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;