projects
/
GitHub
/
mt8127
/
android_kernel_alcatel_ttab.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
f7b86bf
)
net:dev: remove double indentical assignment in dev_change_net_namespace().
author
Rami Rosen
<ramirose@gmail.com>
Fri, 19 Oct 2012 01:09:30 +0000
(
01:09
+0000)
committer
David 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
patch
|
blob
|
blame
|
history
diff --git
a/net/core/dev.c
b/net/core/dev.c
index 09cb3f6dc40c4a573a9597ca851b9a91a09a1c3d..b4978e2d6ddfdeb064655c68037049963798e22c 100644
(file)
--- 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;