OSDN Git Service

IB/hfi1: use true,false for bool variable
authorzhengbin <zhengbin13@huawei.com>
Tue, 24 Dec 2019 08:40:09 +0000 (16:40 +0800)
committerJason Gunthorpe <jgg@mellanox.com>
Fri, 3 Jan 2020 23:13:59 +0000 (19:13 -0400)
commitd09dbe74e963ffca7bfb0a8c0f98494a864654b6
treea2a80144655affe7f8c8c1f1df360139032f11e9
parent5369b4828975fcd2d499791b3d25a4e7c0b96baa
IB/hfi1: use true,false for bool variable

Fixes coccicheck warning:

drivers/infiniband/hw/hfi1/rc.c:2602:1-8: WARNING: Assignment of 0/1 to bool variable

Link: https://lore.kernel.org/r/1577176812-2238-3-git-send-email-zhengbin13@huawei.com
Reported-by: Hulk Robot <hulkci@huawei.com>
Signed-off-by: zhengbin <zhengbin13@huawei.com>
Reviewed-by: Leon Romanovsky <leonro@mellanox.com>
Signed-off-by: Jason Gunthorpe <jgg@mellanox.com>
drivers/infiniband/hw/hfi1/rc.c