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@xxxxxxxxxxxxxxxxxx> Signed-off-by: Fengguang Wu <fengguang.wu@xxxxxxxxx> --- smc_wr.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) --- 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 ********************************/ -- To unsubscribe from this list: send the line "unsubscribe linux-s390" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html