net:dev: remove double indentical assignment in dev_change_net_namespace().
authorRami Rosen <ramirose@gmail.com>
Fri, 19 Oct 2012 01:09:30 +0000 (01:09 +0000)
committerDavid S. Miller <davem@davemloft.net>
Mon, 22 Oct 2012 00:44:39 +0000 (20:44 -0400)
This patch removes double assignment of err to -EINVAL in dev_change_net_namespace().

Signed-off-by: Rami Rosen <ramirose@gmail.com>
Acked-by: Serge E. Hallyn <serge.hallyn@ubuntu.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/core/dev.c

index 09cb3f6dc40c4a573a9597ca851b9a91a09a1c3d..b4978e2d6ddfdeb064655c68037049963798e22c 100644 (file)
@@ -6264,7 +6264,6 @@ int dev_change_net_namespace(struct net_device *dev, struct net *net, const char
                goto out;
 
        /* Ensure the device has been registrered */
-       err = -EINVAL;
        if (dev->reg_state != NETREG_REGISTERED)
                goto out;