proc: clean the ip_misc_proc_init and ip_proc_init_net error paths
authorPavel Emelyanov <xemul@openvz.org>
Fri, 18 Jul 2008 11:06:50 +0000 (04:06 -0700)
committerDavid S. Miller <davem@davemloft.net>
Fri, 18 Jul 2008 11:06:50 +0000 (04:06 -0700)
commit60bdde95807e982a824be9cfdd35055cc721a88a
tree286bd367b687f9a1daddcc6b0fde2f2e8ef4c0ef
parent8e3461d01bdbc3dbf993448ed9ad4acaaeb6495d
proc: clean the ip_misc_proc_init and ip_proc_init_net error paths

After all this stuff is moved outside, this function can look better.

Besides, I tuned the error path in ip_proc_init_net to make it have
only 2 exit points, not 3.

Signed-off-by: Pavel Emelyanov <xemul@openvz.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/ipv4/proc.c