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

From: David Miller
Date: Thu May 07 2020 - 16:04:49 EST


From: Jason Yan <yanaijie@xxxxxxxxxx>
Date: Thu, 7 May 2020 19:08:57 +0800

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

Applied.