Skip to content

Commit

Permalink
ipv4: clean the init_ipv4_mibs error paths
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Pavel Emelyanov authored and David S. Miller committed Jul 18, 2008
1 parent 923c658 commit d89cbbb
Showing 1 changed file with 1 addition and 7 deletions.
8 changes: 1 addition & 7 deletions net/ipv4/af_inet.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit d89cbbb

Please sign in to comment.