Commit d89cbbb1 authored by Pavel Emelyanov's avatar Pavel Emelyanov Committed by David S. Miller

ipv4: clean the init_ipv4_mibs error paths

After moving all the stuff outside this function it looks
a bit ugly - make it look better.
Signed-off-by: default avatarPavel Emelyanov <xemul@openvz.org>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent 923c6586
...@@ -1399,13 +1399,7 @@ static __net_initdata struct pernet_operations ipv4_mib_ops = { ...@@ -1399,13 +1399,7 @@ static __net_initdata struct pernet_operations ipv4_mib_ops = {
static int __init init_ipv4_mibs(void) static int __init init_ipv4_mibs(void)
{ {
if (register_pernet_subsys(&ipv4_mib_ops)) return register_pernet_subsys(&ipv4_mib_ops);
goto err_net;
return 0;
err_net:
return -ENOMEM;
} }
static int ipv4_proc_init(void); static int ipv4_proc_init(void);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment