]> git.baikalelectronics.ru Git - kernel.git/commit
net/mlx5e: Remove redundant check in get ethtool stats
authorGal Pressman <galp@mellanox.com>
Thu, 11 Jan 2018 14:24:06 +0000 (16:24 +0200)
committerSaeed Mahameed <saeedm@mellanox.com>
Mon, 26 Mar 2018 20:47:15 +0000 (13:47 -0700)
commit2defa9fec4b8502f94d90adedf0f12d57fc012f2
tree475b383ee01008f2cc0e241131a5379aea2d7e91
parent2f6b303757fcaa10916bc31d7ba99c7b87da1fd8
net/mlx5e: Remove redundant check in get ethtool stats

ethtool core code makes sure data isn't NULL before calling
get_ethtool_stats, testing it again in the driver is redundant.

Signed-off-by: Gal Pressman <galp@mellanox.com>
Signed-off-by: Saeed Mahameed <saeedm@mellanox.com>
drivers/net/ethernet/mellanox/mlx5/core/en_ethtool.c