summaryrefslogtreecommitdiffstats
path: root/net/core
diff options
context:
space:
mode:
authorRami Rosen <ramirose@gmail.com>2012-10-19 03:09:30 +0200
committerDavid S. Miller <davem@davemloft.net>2012-10-22 02:44:39 +0200
commit47b70db5558388b3f4ecd10b492a0b3f6d680789 (patch)
tree4341142422b710320d2016282234a910c617d38b /net/core
parentsockopt: Make SO_BINDTODEVICE readable (diff)
downloadlinux-47b70db5558388b3f4ecd10b492a0b3f6d680789.tar.xz
linux-47b70db5558388b3f4ecd10b492a0b3f6d680789.zip
net:dev: remove double indentical assignment in dev_change_net_namespace().
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>
Diffstat (limited to 'net/core')
-rw-r--r--net/core/dev.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/net/core/dev.c b/net/core/dev.c
index 09cb3f6dc40c..b4978e2d6ddf 100644
--- a/net/core/dev.c
+++ b/net/core/dev.c
@@ -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;