diff options
| author | Russell King <rmk+kernel@armlinux.org.uk> | 2020-06-18 14:45:48 +0100 |
|---|---|---|
| committer | David S. Miller <davem@davemloft.net> | 2020-06-19 20:17:15 -0700 |
| commit | ee951005e95eb61b3bde893b6c7be1abaf07f59b (patch) | |
| tree | 378cdb6193a0fdbb123d047db023d322c48c3719 /tools/perf/scripts/python/bin/stackcollapse-record | |
| parent | net: phy: clean up get_phy_c45_ids() failure handling (diff) | |
| download | linux-ee951005e95eb61b3bde893b6c7be1abaf07f59b.tar.gz linux-ee951005e95eb61b3bde893b6c7be1abaf07f59b.zip | |
net: phy: clean up get_phy_c22_id() invalid ID handling
Move the ID check from get_phy_device() into get_phy_c22_id(), which
simplifies get_phy_device(). The ID reading functions are now
responsible for indicating whether they found a PHY or not via their
return code - they must return -ENODEV when a PHY is not present.
Reviewed-by: Florian Fainelli <f.fainelli@gmail.com>
Signed-off-by: Russell King <rmk+kernel@armlinux.org.uk>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'tools/perf/scripts/python/bin/stackcollapse-record')
0 files changed, 0 insertions, 0 deletions
