OSDN Git Service

IB/hns: fix boolreturn.cocci warnings
authorkbuild test robot <fengguang.wu@intel.com>
Tue, 25 Jul 2017 05:36:24 +0000 (13:36 +0800)
committerDoug Ledford <dledford@redhat.com>
Fri, 28 Jul 2017 18:51:13 +0000 (14:51 -0400)
commit3756c7f59a4538bb40d77a25221dc411cc7dd2e9
treeef6fc981238468755477d444adfdbf4a963e8d37
parente89bf462b6bece63a60723af88c76dce9dbe6b85
IB/hns: fix boolreturn.cocci warnings

drivers/infiniband/hw/hns/hns_roce_qp.c:802:9-10: WARNING: return of 0/1 in function 'hns_roce_wq_overflow' with return type bool

 Return statements in functions returning bool should use
 true/false instead of 1/0.
Generated by: scripts/coccinelle/misc/boolreturn.cocci

Fixes: 7d1b6a678e0b ("IB/hns: Support compile test for hns RoCE driver")
CC: Matan Barak <matanb@mellanox.com>
Signed-off-by: Fengguang Wu <fengguang.wu@intel.com>
Signed-off-by: Doug Ledford <dledford@redhat.com>
drivers/infiniband/hw/hns/hns_roce_qp.c