Re: [PATCH net-next] net: mlx4: remove unneeded variable "err" in mlx4_en_get_rxfh()

From: David Miller
Date: Wed May 06 2020 - 16:58:02 EST


From: Jason Yan <yanaijie@xxxxxxxxxx>
Date: Wed, 6 May 2020 14:16:30 +0800

> Fix the following coccicheck warning:
>
> drivers/net/ethernet/mellanox/mlx4/en_ethtool.c:1238:5-8: Unneeded
> variable: "err". Return "0" on line 1252
>
> Signed-off-by: Jason Yan <yanaijie@xxxxxxxxxx>

Applied.