summaryrefslogtreecommitdiff
path: root/net/core
diff options
context:
space:
mode:
authorDavid S. Miller <davem@davemloft.net>2015-10-09 07:49:08 -0700
committerDavid S. Miller <davem@davemloft.net>2015-10-09 07:49:08 -0700
commit4d886d65ed89f2572727c354162341a4c106a963 (patch)
treee6fd3232b0e38cac01154eada278a18bcb234ca2 /net/core
parent8cec75bd85cc26f81e85eb20e863cc564d354113 (diff)
parent0cbf334376d5e82d7a2f5cd234ca4f5d0843f3ea (diff)
downloadlwn-4d886d65ed89f2572727c354162341a4c106a963.tar.gz
lwn-4d886d65ed89f2572727c354162341a4c106a963.zip
Merge branch 'net-bool'
Yaowei Bai says: ==================== net: small improvement This patchset makes several functions in net return bool to improve readability and/or simplicity because these functions only use one or zero as their return value. No functional changes. ==================== Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/core')
-rw-r--r--net/core/rtnetlink.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/net/core/rtnetlink.c b/net/core/rtnetlink.c
index b2258a36d894..24775953fa68 100644
--- a/net/core/rtnetlink.c
+++ b/net/core/rtnetlink.c
@@ -96,7 +96,7 @@ int rtnl_is_locked(void)
EXPORT_SYMBOL(rtnl_is_locked);
#ifdef CONFIG_PROVE_LOCKING
-int lockdep_rtnl_is_held(void)
+bool lockdep_rtnl_is_held(void)
{
return lockdep_is_held(&rtnl_mutex);
}