aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGustavo A. R. Silva <gustavo@embeddedor.com>2018-01-26 03:28:50 -0500
committerDavid S. Miller <davem@davemloft.net>2018-01-26 10:41:56 -0500
commita8fbf8e7ecda38d70a7983246fbadf04063f3843 (patch)
tree2fcf35617379a9237ec2661262c9039ae79087ca
parent127f497058236e5f07672e11382232f80cb7e8c4 (diff)
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>
-rw-r--r--net/smc/smc.h4
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)
252static inline bool using_ipsec(struct smc_sock *smc) 252static inline bool using_ipsec(struct smc_sock *smc)
253{ 253{
254 return (smc->clcsock->sk->sk_policy[0] || 254 return (smc->clcsock->sk->sk_policy[0] ||
255 smc->clcsock->sk->sk_policy[1]) ? 1 : 0; 255 smc->clcsock->sk->sk_policy[1]) ? true : false;
256} 256}
257#else 257#else
258static inline bool using_ipsec(struct smc_sock *smc) 258static inline bool using_ipsec(struct smc_sock *smc)
259{ 259{
260 return 0; 260 return false;
261} 261}
262#endif 262#endif
263 263