dect
/
linux-2.6
Archived
13
0
Fork 0

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>
This commit is contained in:
Pavel Emelyanov 2008-07-18 04:04:51 -07:00 committed by David S. Miller
parent 923c6586b0
commit d89cbbb1e6
1 changed files with 1 additions and 7 deletions

View File

@ -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);