aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorzhengbin <zhengbin13@huawei.com>2019-12-24 16:40:08 +0800
committerJason Gunthorpe <jgg@mellanox.com>2020-01-03 19:13:59 -0400
commit5369b4828975fcd2d499791b3d25a4e7c0b96baa (patch)
tree02f27b5322bfba0323ccd086f376e0ff8502c02f
parentIB/core: Fix ODP with IB_ACCESS_HUGETLB handling (diff)
downloadlinux-dev-5369b4828975fcd2d499791b3d25a4e7c0b96baa.tar.xz
linux-dev-5369b4828975fcd2d499791b3d25a4e7c0b96baa.zip
RDMA/siw: use true,false for bool variable
Fixes coccicheck warning: drivers/infiniband/sw/siw/siw_cm.c:32:18-41: WARNING: Assignment of 0/1 to bool variable Link: https://lore.kernel.org/r/1577176812-2238-2-git-send-email-zhengbin13@huawei.com Reported-by: Hulk Robot <hulkci@huawei.com> Signed-off-by: zhengbin <zhengbin13@huawei.com> Signed-off-by: Jason Gunthorpe <jgg@mellanox.com>
-rw-r--r--drivers/infiniband/sw/siw/siw_cm.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/infiniband/sw/siw/siw_cm.c b/drivers/infiniband/sw/siw/siw_cm.c
index 3bccfef40e7e..0c3f0588346e 100644
--- a/drivers/infiniband/sw/siw/siw_cm.c
+++ b/drivers/infiniband/sw/siw/siw_cm.c
@@ -29,7 +29,7 @@
* MPA_V2_RDMA_NO_RTR, MPA_V2_RDMA_READ_RTR, MPA_V2_RDMA_WRITE_RTR
*/
static __be16 rtr_type = MPA_V2_RDMA_READ_RTR | MPA_V2_RDMA_WRITE_RTR;
-static const bool relaxed_ird_negotiation = 1;
+static const bool relaxed_ird_negotiation = true;
static void siw_cm_llp_state_change(struct sock *s);
static void siw_cm_llp_data_ready(struct sock *s);