diff options
author | Heiner Kallweit <hkallweit1@gmail.com> | 2019-01-16 21:52:51 +0300 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2019-01-19 00:59:00 +0300 |
commit | d8cce3a1bc539f7e928eb1d094a312089b146aa4 (patch) | |
tree | cb0ecab071408278f52a4d827782dd8e38b8e603 /drivers/net/ethernet/neterion | |
parent | e302c2a5fe0ca63b8fcc93389917625f486e0670 (diff) | |
download | linux-d8cce3a1bc539f7e928eb1d094a312089b146aa4.tar.xz |
net: phy: improve get_phy_id
Only caller of get_phy_id() is get_phy_device(). There a PHY ID of
0xffffffff is translated back to -ENODEV. So we can avoid some
overhead by returning -ENODEV directly.
Signed-off-by: Heiner Kallweit <hkallweit1@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/ethernet/neterion')
0 files changed, 0 insertions, 0 deletions