Re: [PATCH net-next] net: ena: remove set but not used variable 'rx_ring'

From: David Miller
Date: Tue Feb 18 2020 - 00:53:11 EST


From: YueHaibing <yuehaibing@xxxxxxxxxx>
Date: Tue, 18 Feb 2020 09:59:51 +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>

This does not apply cleanly to net-next, please respin.