Message ID | 20160809125559.GA8952@lkp-ib03 |
---|---|
State | Not Applicable, archived |
Delegated to: | David Miller |
Headers | show |
--- a/net/smc/smc_wr.c +++ b/net/smc/smc_wr.c @@ -271,9 +271,9 @@ bool smc_wr_tx_has_pending(struct smc_li continue; tx_pend = &link->wr_tx_pends[i].priv; if (filter(tx_pend, data)) - return 1; + return true; } - return 0; + return false; } /****************************** receive queue ********************************/
net/smc/smc_wr.c:274:10-11: WARNING: return of 0/1 in function 'smc_wr_tx_has_pending' 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: Ursula Braun <ubraun@linux.vnet.ibm.com> Signed-off-by: Fengguang Wu <fengguang.wu@intel.com> --- smc_wr.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)