Re: [PATCH net-next] net: ena: remove set but not used variable 'rx_ring'
From: David Miller
Date: Fri Dec 27 2019 - 19:32:55 EST
From: YueHaibing <yuehaibing@xxxxxxxxxx>
Date: Tue, 24 Dec 2019 20:51:28 +0800
> drivers/net/ethernet/amazon/ena/ena_netdev.c: In function ena_xdp_xmit_buff:
> drivers/net/ethernet/amazon/ena/ena_netdev.c:316:19: warning:
> variable rx_ring set but not used [-Wunused-but-set-variable]
>
> commit 548c4940b9f1 ("net: ena: Implement XDP_TX action")
> left behind this unused variable.
>
> Reported-by: Hulk Robot <hulkci@xxxxxxxxxx>
> Signed-off-by: YueHaibing <yuehaibing@xxxxxxxxxx>
Applied, thanks.