From: Gustavo A. R. Silva Date: Fri, 26 Jan 2018 08:28:50 +0000 (+0100) Subject: net/smc: return booleans instead of integers X-Git-Url: http://git.maquefel.me/?a=commitdiff_plain;h=a8fbf8e7ecda38d70a7983246fbadf04063f3843;p=linux.git net/smc: return booleans instead of integers Return statements in functions returning bool should use true/false instead of 1/0. This issue was detected with the help of Coccinelle. Signed-off-by: Gustavo A. R. Silva Signed-off-by: Ursula Braun Signed-off-by: David S. Miller --- diff --git a/net/smc/smc.h b/net/smc/smc.h index bfbe202341055..9518986c97b18 100644 --- a/net/smc/smc.h +++ b/net/smc/smc.h @@ -252,12 +252,12 @@ static inline int smc_uncompress_bufsize(u8 compressed) static inline bool using_ipsec(struct smc_sock *smc) { return (smc->clcsock->sk->sk_policy[0] || - smc->clcsock->sk->sk_policy[1]) ? 1 : 0; + smc->clcsock->sk->sk_policy[1]) ? true : false; } #else static inline bool using_ipsec(struct smc_sock *smc) { - return 0; + return false; } #endif