projects
/
linux.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
9ff1b64
)
RDMA/siw: use true,false for bool variable
author
zhengbin
<zhengbin13@huawei.com>
Tue, 24 Dec 2019 08:40:08 +0000
(16:40 +0800)
committer
Jason Gunthorpe
<jgg@mellanox.com>
Fri, 3 Jan 2020 23:13:59 +0000
(19:13 -0400)
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>
drivers/infiniband/sw/siw/siw_cm.c
patch
|
blob
|
history
diff --git
a/drivers/infiniband/sw/siw/siw_cm.c
b/drivers/infiniband/sw/siw/siw_cm.c
index
3bccfef
..
0c3f058
100644
(file)
--- 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);