net: mlx4: remove unneeded variable "err" in mlx4_en_ethtool_add_mac_rule()
authorJason Yan <yanaijie@huawei.com>
Thu, 7 May 2020 11:08:57 +0000 (19:08 +0800)
committerDavid S. Miller <davem@davemloft.net>
Thu, 7 May 2020 20:04:21 +0000 (13:04 -0700)
commit5a7c45097c3f63ac10def7206292b88023205a3e
tree0c8fefb83747ef4e81a84d9d76c7b2682adfcb9b
parent27ad2cd2000298e5822a12012edda47d72fdb27e
net: mlx4: remove unneeded variable "err" in mlx4_en_ethtool_add_mac_rule()

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@huawei.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/mellanox/mlx4/en_ethtool.c