summaryrefslogtreecommitdiffstats
path: root/net/netlink
diff options
context:
space:
mode:
authorYaowei Bai <bywxiaobai@163.com>2015-10-08 15:28:54 +0200
committerDavid S. Miller <davem@davemloft.net>2015-10-09 16:48:59 +0200
commit61d03535e4be3a46c1e171a25458237e343195e3 (patch)
treebb15489d3229944346f8299373a79c275eb423b1 /net/netlink
parentMerge branch 'mlx-next' (diff)
downloadlinux-61d03535e4be3a46c1e171a25458237e343195e3.tar.xz
linux-61d03535e4be3a46c1e171a25458237e343195e3.zip
net/netlink: lockdep_genl_is_held can be boolean
This patch makes lockdep_genl_is_held return bool to improve readability due to this particular function only using either one or zero as its return value. No functional change. Signed-off-by: Yaowei Bai <bywxiaobai@163.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/netlink')
-rw-r--r--net/netlink/genetlink.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/net/netlink/genetlink.c b/net/netlink/genetlink.c
index 75724a96aef2..bc0e504f33a6 100644
--- a/net/netlink/genetlink.c
+++ b/net/netlink/genetlink.c
@@ -39,7 +39,7 @@ void genl_unlock(void)
EXPORT_SYMBOL(genl_unlock);
#ifdef CONFIG_LOCKDEP
-int lockdep_genl_is_held(void)
+bool lockdep_genl_is_held(void)
{
return lockdep_is_held(&genl_mutex);
}