commit | d8cce3a1bc539f7e928eb1d094a312089b146aa4 | [log] [tgz] |
---|---|---|
author | Heiner Kallweit <hkallweit1@gmail.com> | Wed Jan 16 19:52:51 2019 +0100 |
committer | David S. Miller <davem@davemloft.net> | Fri Jan 18 13:59:00 2019 -0800 |
tree | cb0ecab071408278f52a4d827782dd8e38b8e603 | |
parent | e302c2a5fe0ca63b8fcc93389917625f486e0670 [diff] |
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>