Make xfrm functions that return a boolean value return bool
Make xfrm functions that return a boolean value return bool to allow gcc to
make better decisions.
Signed-off-by: David Howells <dhowells@redhat.com>
diff --git a/include/net/xfrm.h b/include/net/xfrm.h
index 36ac102..8b2d368 100644
--- a/include/net/xfrm.h
+++ b/include/net/xfrm.h
@@ -1658,10 +1658,10 @@
}
#ifdef CONFIG_XFRM
-static inline int xfrm_aevent_is_on(struct net *net)
+static inline bool xfrm_aevent_is_on(struct net *net)
{
struct sock *nlsk;
- int ret = 0;
+ bool ret = false;
rcu_read_lock();
nlsk = rcu_dereference(net->xfrm.nlsk);
@@ -1671,10 +1671,10 @@
return ret;
}
-static inline int xfrm_acquire_is_on(struct net *net)
+static inline bool xfrm_acquire_is_on(struct net *net)
{
struct sock *nlsk;
- int ret = 0;
+ int ret = false;
rcu_read_lock();
nlsk = rcu_dereference(net->xfrm.nlsk);