netns: simplify net_ns_init
authorStephen Hemminger <shemminger@vyatta.com>
Thu, 21 May 2009 22:10:31 +0000 (15:10 -0700)
committerDavid S. Miller <davem@davemloft.net>
Thu, 21 May 2009 22:10:31 +0000 (15:10 -0700)
commitca0f31125c5cf0d48f47c2e1a3785a08876a7e87
tree8480e770af9b7c2f85e94327db7259c7d86ccf4b
parent1f7a2bb4eff75c56a71b3896c36a34e787c5e4e5
netns: simplify net_ns_init

The net_ns_init code can be simplified. No need to save error code
if it is only going to panic if it is set 4 lines later.

Signed-off-by: Stephen Hemminger <shemminger@vyatta.com>
Acked-by: "Eric W. Biederman" <ebiederm@xmission.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/core/net_namespace.c