mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/
synced 2026-10-18 19:12:56 +00:00
net/ethtool/ioctl: remove if n_stats checks from ethtool_get_phy_stats
[ Upstream commitfd4778581d] 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> Stable-dep-of:7b07be1ff1("ethtool: Avoid overflowing userspace buffer on stats query") Signed-off-by: Sasha Levin <sashal@kernel.org>
This commit is contained in:
parent
78f0d7353b
commit
c8666be7c3
1 changed files with 10 additions and 14 deletions
Loading…
Add table
Add a link
Reference in a new issue