diff options
| author | Heiner Kallweit <[email protected]> | 2019-01-16 19:52:51 +0100 |
|---|---|---|
| committer | David S. Miller <[email protected]> | 2019-01-18 13:59:00 -0800 |
| commit | d8cce3a1bc539f7e928eb1d094a312089b146aa4 (patch) | |
| tree | cb0ecab071408278f52a4d827782dd8e38b8e603 /tools/perf/scripts/python/net_dropmonitor.py | |
| 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 <[email protected]>
Signed-off-by: David S. Miller <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/net_dropmonitor.py')
0 files changed, 0 insertions, 0 deletions