diff options
author | Russell King <rmk+kernel@armlinux.org.uk> | 2020-06-18 14:45:43 +0100 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2020-06-19 20:17:14 -0700 |
commit | 48c543887bc528451e3a64c503ae82386520c686 (patch) | |
tree | 3aa73b386c11218908435cf9d27521fd56a48b7e /tools/perf/scripts/python/export-to-postgresql.py | |
parent | e63062616df323cee4266ed3f964e20e00092d9a (diff) |
net: phy: clean up get_phy_c45_ids() failure handling
When we decide that a PHY is not present, we do not need to go through
the hoops of setting *phy_id to 0xffffffff, and then return zero to
make get_phy_device() fail - we can return -ENODEV which will have the
same effect.
Doing so means we no longer have to pass a pointer to phy_id in, and
we can then clean up the clause 22 path in a similar way.
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/export-to-postgresql.py')
0 files changed, 0 insertions, 0 deletions