[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20130313133049.GC17592@hmsreliant.think-freely.org>
Date: Wed, 13 Mar 2013 09:30:49 -0400
From: Neil Horman <nhorman@...driver.com>
To: Wei Yongjun <weiyj.lk@...il.com>
Cc: davem@...emloft.net, jasowang@...hat.com, mst@...hat.com,
edumazet@...gle.com, yongjun_wei@...ndmicro.com.cn,
netdev@...r.kernel.org
Subject: Re: [PATCH] tuntap: remove unused variable in __tun_detach()
On Wed, Mar 13, 2013 at 09:03:58PM +0800, Wei Yongjun wrote:
> From: Wei Yongjun <yongjun_wei@...ndmicro.com.cn>
>
> The variable dev is initialized but never used
> otherwise, so remove the unused variable.
>
> Signed-off-by: Wei Yongjun <yongjun_wei@...ndmicro.com.cn>
> ---
> drivers/net/tun.c | 2 --
> 1 file changed, 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]);
>
>
Acked-by: Neil Horman <nhorman@...driver.com>
--
To unsubscribe from this list: send the line "unsubscribe netdev" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Powered by blists - more mailing lists