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

From: David Miller
Date: Tue Feb 18 2020 - 01:33:27 EST


From: YueHaibing <yuehaibing@xxxxxxxxxx>
Date: Tue, 18 Feb 2020 14:21:54 +0800

> drivers/net/ethernet/amazon/ena/ena_com.c: In function ena_com_hash_key_allocate:
> drivers/net/ethernet/amazon/ena/ena_com.c:1070:50:
> warning: variable hash_key set but not used [-Wunused-but-set-variable]
>
> commit 6a4f7dc82d1e ("net: ena: rss: do not allocate key when not supported")
> introduced this, but not used, so remove it.
>
> Reported-by: Hulk Robot <hulkci@xxxxxxxxxx>
> Signed-off-by: YueHaibing <yuehaibing@xxxxxxxxxx>

Applied.