Patchwork tun: Remove a dead line of code

login
register
mail settings
Submitter Paul Moore
Date July 7, 2009, 6:11 p.m.
Message ID <20090707181133.8021.9712.stgit@flek.lan>
Download mbox | patch
Permalink /patch/29536/
State Accepted
Delegated to: David Miller
Headers show

Comments

Paul Moore - July 7, 2009, 6:11 p.m.
Remove an unnecessary assignment.

Signed-off-by: Paul Moore <paul.moore@hp.com>
---

 drivers/net/tun.c |    1 -
 1 files changed, 0 insertions(+), 1 deletions(-)


--
To unsubscribe from this list: send the line "unsubscribe netdev" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
David Miller - July 8, 2009, 2:22 a.m.
From: Paul Moore <paul.moore@hp.com>
Date: Tue, 07 Jul 2009 14:11:33 -0400

> Remove an unnecessary assignment.
> 
> Signed-off-by: Paul Moore <paul.moore@hp.com>

Applied to net-next-2.6
--
To unsubscribe from this list: send the line "unsubscribe netdev" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Patch

diff --git a/drivers/net/tun.c b/drivers/net/tun.c
index 027f7ab..4a0db7a 100644
--- a/drivers/net/tun.c
+++ b/drivers/net/tun.c
@@ -997,7 +997,6 @@  static int tun_set_iff(struct net *net, struct file *file, struct ifreq *ifr)
 				goto err_free_sk;
 		}
 
-		err = -EINVAL;
 		err = register_netdevice(tun->dev);
 		if (err < 0)
 			goto err_free_sk;