net/ethtool/ioctl: remove if n_stats checks from ethtool_get_phy_stats
authorDaniil Tatianin <d-tatianin@yandex-team.ru>
Mon, 26 Dec 2022 11:48:24 +0000 (14:48 +0300)
committerDavid S. Miller <davem@davemloft.net>
Wed, 28 Dec 2022 11:55:24 +0000 (11:55 +0000)
commitfd4778581d61d8848b532f8cdc9b325138748437
treef33b39007ba1a688df2f402a97f4cabaf38d605b
parent9deb1e9fb88b1120a908676fa33bdf9e2eeaefce
net/ethtool/ioctl: remove if n_stats checks from ethtool_get_phy_stats

Now that we always early return if we don't have any stats we can remove
these checks as they're no longer necessary.

Signed-off-by: Daniil Tatianin <d-tatianin@yandex-team.ru>
Reviewed-by: Andrew Lunn <andrew@lunn.ch>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/ethtool/ioctl.c