diff options
author | Gustavo A. R. Silva <gustavo@embeddedor.com> | 2018-01-26 09:28:50 +0100 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2018-01-26 10:41:56 -0500 |
commit | a8fbf8e7ecda38d70a7983246fbadf04063f3843 (patch) | |
tree | 2fcf35617379a9237ec2661262c9039ae79087ca /net/smc/smc.h | |
parent | 127f497058236e5f07672e11382232f80cb7e8c4 (diff) | |
download | linux-a8fbf8e7ecda38d70a7983246fbadf04063f3843.tar.bz2 |
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 <gustavo@embeddedor.com>
Signed-off-by: Ursula Braun <ubraun@linux.vnet.ibm.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/smc/smc.h')
-rw-r--r-- | net/smc/smc.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/net/smc/smc.h b/net/smc/smc.h index bfbe20234105..9518986c97b1 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 |