[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20160304121056.GA3205@lkp-nhm1.intel.com>
Date: Fri, 4 Mar 2016 20:10:57 +0800
From: kbuild test robot <lkp@...el.com>
To: "Wei Hu(Xavier)" <xavier.huwei@...wei.com>
Cc: kbuild-all@...org, dledford@...hat.com, sean.hefty@...el.com,
hal.rosenstock@...il.com, davem@...emloft.net,
jeffrey.t.kirsher@...el.com, jiri@...lanox.com,
ogerlitz@...lanox.com, linux-rdma@...r.kernel.org,
linux-kernel@...r.kernel.org, netdev@...r.kernel.org,
gongyangming@...wei.com, xiaokun@...wei.com,
tangchaofei@...wei.com, oulijun@...wei.com, haifeng.wei@...wei.com,
yisen.zhuang@...wei.com, yankejian@...wei.com,
lisheng011@...wei.com, charles.chenxin@...wei.com,
linuxarm@...wei.com
Subject: [PATCH] infiniband: hns: fix boolreturn.cocci warnings
drivers/infiniband/hw/hisilicon/hns/hns_roce_qp.c:906: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
CC: Wei Hu(Xavier) <xavier.huwei@...wei.com>
Signed-off-by: Fengguang Wu <fengguang.wu@...el.com>
---
hns_roce_qp.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
--- a/drivers/infiniband/hw/hisilicon/hns/hns_roce_qp.c
+++ b/drivers/infiniband/hw/hisilicon/hns/hns_roce_qp.c
@@ -903,7 +903,7 @@ bool hns_roce_wq_overflow(struct hns_roc
cur = hr_wq->head - hr_wq->tail;
if (likely(cur + nreq < hr_wq->max_post))
- return 0;
+ return false;
hr_cq = to_hr_cq(ib_cq);
spin_lock(&hr_cq->lock);
Powered by blists - more mailing lists