From: Wei Yongjun Date: Wed, 13 Mar 2013 03:03:58 +0000 (+0000) Subject: tuntap: remove unused variable in __tun_detach() X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=f7de0b936811296f7d88d378af80ad14b061769a;p=GitHub%2Fexynos8895%2Fandroid_kernel_samsung_universal8895.git 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 Acked-by: Neil Horman Signed-off-by: David S. Miller --- diff --git a/drivers/net/tun.c b/drivers/net/tun.c index b7c457adc0dc..95837c1b197a 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]);