提交 d89cbbb1 编写于 作者: P Pavel Emelyanov 提交者: David S. Miller

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: NPavel Emelyanov <xemul@openvz.org>
Signed-off-by: NDavid S. Miller <davem@davemloft.net>
上级 923c6586
......@@ -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);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册