From: Pavel Emelyanov Date: Fri, 18 Jul 2008 11:04:51 +0000 (-0700) Subject: ipv4: clean the init_ipv4_mibs error paths X-Git-Tag: MMI-PSA29.97-13-9~33552^2~41 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=d89cbbb1e69a3bfea38038fb058bd51013902ef3;p=GitHub%2FMotorolaMobilityLLC%2Fkernel-slsi.git 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 Signed-off-by: David S. Miller --- diff --git a/net/ipv4/af_inet.c b/net/ipv4/af_inet.c index 36ff6dc769c6..dd919d84285f 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);