aboutsummaryrefslogtreecommitdiffstats
path: root/net/tipc/netlink.c
diff options
context:
space:
mode:
Diffstat (limited to 'net/tipc/netlink.c')
-rw-r--r--net/tipc/netlink.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/net/tipc/netlink.c b/net/tipc/netlink.c
index 08b974ed9109..2d778dfc4492 100644
--- a/net/tipc/netlink.c
+++ b/net/tipc/netlink.c
@@ -80,6 +80,8 @@ static int family_registered = 0;
80 80
81int netlink_start(void) 81int netlink_start(void)
82{ 82{
83
84
83 if (genl_register_family(&family)) 85 if (genl_register_family(&family))
84 goto err; 86 goto err;
85 87
@@ -88,7 +90,7 @@ int netlink_start(void)
88 if (genl_register_ops(&family, &ops)) 90 if (genl_register_ops(&family, &ops))
89 goto err_unregister; 91 goto err_unregister;
90 92
91 return 0; 93 return 0;
92 94
93 err_unregister: 95 err_unregister:
94 genl_unregister_family(&family); 96 genl_unregister_family(&family);