diff options
author | Pavel Emelyanov <xemul@openvz.org> | 2008-07-18 04:04:51 -0700 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2008-07-18 04:04:51 -0700 |
commit | d89cbbb1e69a3bfea38038fb058bd51013902ef3 (patch) | |
tree | fc6d3c47a7cd8f22dc6f6fd48daebbd07482e29d /net | |
parent | 923c6586b0dc0a00df07a1608185437145a0c68b (diff) | |
download | op-kernel-dev-d89cbbb1e69a3bfea38038fb058bd51013902ef3.zip op-kernel-dev-d89cbbb1e69a3bfea38038fb058bd51013902ef3.tar.gz |
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: Pavel Emelyanov <xemul@openvz.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net')
-rw-r--r-- | net/ipv4/af_inet.c | 8 |
1 files changed, 1 insertions, 7 deletions
diff --git a/net/ipv4/af_inet.c b/net/ipv4/af_inet.c index 36ff6dc..dd919d8 100644 --- a/net/ipv4/af_inet.c +++ b/net/ipv4/af_inet.c @@ -1399,13 +1399,7 @@ static __net_initdata struct pernet_operations ipv4_mib_ops = { static int __init init_ipv4_mibs(void) { - if (register_pernet_subsys(&ipv4_mib_ops)) - goto err_net; - - return 0; - -err_net: - return -ENOMEM; + return register_pernet_subsys(&ipv4_mib_ops); } static int ipv4_proc_init(void); |