Re: [PATCH net-next] net: ethernet: dnet: Remove set but unused variable 'len'

From: Jakub Kicinski
Date: Mon Sep 07 2020 - 16:58:54 EST


On Mon, 7 Sep 2020 22:12:07 +0800 Wang Hai wrote:
> Fixes gcc '-Wunused-but-set-variable' warning:
>
> drivers/net/ethernet/dnet.c: In function dnet_start_xmit
> drivers/net/ethernet/dnet.c:511:15: warning: variable ‘len’ set but not used [-Wunused-but-set-variable]
>
> commit 4796417417a6 ("dnet: Dave DNET ethernet controller driver (updated)")
> involved this unused variable, remove it.
>
> Reported-by: Hulk Robot <hulkci@xxxxxxxxxx>
> Signed-off-by: Wang Hai <wanghai38@xxxxxxxxxx>

tx_status is also not used. But I guess one change per commit,
so applied. Thanks!