Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

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

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
Loading
Loading
Loading
Loading
+1 −7
Original line number Diff line number Diff line
@@ -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);