Skip to content
Commit aad3c6c2 authored by Daniil Tatianin's avatar Daniil Tatianin Committed by Your Name
Browse files

net/ethtool/ioctl: return -EOPNOTSUPP if we have no phy stats



[ Upstream commit 9deb1e9fb88b1120a908676fa33bdf9e2eeaefce ]

It's not very useful to copy back an empty ethtool_stats struct and
return 0 if we didn't actually have any stats. This also allows for
further simplification of this function in the future commits.

Signed-off-by: default avatarDaniil Tatianin <d-tatianin@yandex-team.ru>
Reviewed-by: default avatarAndrew Lunn <andrew@lunn.ch>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
Signed-off-by: default avatarSasha Levin <sashal@kernel.org>
[bananafunction: minor adaption]
Signed-off-by: default avatarbananafunction <terathree2@web.de>
parent a0265fd5
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment