diff options
author | Wei Yongjun <yongjun_wei@trendmicro.com.cn> | 2013-03-13 03:03:58 (GMT) |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2013-03-13 15:31:58 (GMT) |
commit | f7de0b936811296f7d88d378af80ad14b061769a (patch) | |
tree | 11321537d49bf7ca29f53b14f69907646afe14c9 /drivers | |
parent | df594563fc8503d8473341fc67fc890c65c3a7c9 (diff) | |
download | linux-fsl-qoriq-f7de0b936811296f7d88d378af80ad14b061769a.tar.xz |
tuntap: remove unused variable in __tun_detach()
The variable dev is initialized but never used
otherwise, so remove the unused variable.
Signed-off-by: Wei Yongjun <yongjun_wei@trendmicro.com.cn>
Acked-by: Neil Horman <nhorman@tuxdriver.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/net/tun.c | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/drivers/net/tun.c b/drivers/net/tun.c index b7c457a..95837c1 100644 --- a/drivers/net/tun.c +++ b/drivers/net/tun.c @@ -409,14 +409,12 @@ static void __tun_detach(struct tun_file *tfile, bool clean) { struct tun_file *ntfile; struct tun_struct *tun; - struct net_device *dev; tun = rtnl_dereference(tfile->tun); if (tun && !tfile->detached) { u16 index = tfile->queue_index; BUG_ON(index >= tun->numqueues); - dev = tun->dev; rcu_assign_pointer(tun->tfiles[index], tun->tfiles[tun->numqueues - 1]); |