diff options
author | Oleksij Rempel <o.rempel@pengutronix.de> | 2021-06-07 11:27:21 +0300 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2021-06-07 23:23:02 +0300 |
commit | 7e88b11a862afe59ee0c365123ea5fb96a26cb3b (patch) | |
tree | ecf6cdec29146efc42de175162ec008b19305a9b /drivers/net/usb/asix.h | |
parent | 218d154f540a58b82394e128e425560181c1662e (diff) | |
download | linux-7e88b11a862afe59ee0c365123ea5fb96a26cb3b.tar.xz |
net: usb: asix: refactor asix_read_phy_addr() and handle errors on return
Refactor asix_read_phy_addr() to return usable error value directly and
make sure all callers handle this error.
Signed-off-by: Oleksij Rempel <o.rempel@pengutronix.de>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/usb/asix.h')
-rw-r--r-- | drivers/net/usb/asix.h | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/drivers/net/usb/asix.h b/drivers/net/usb/asix.h index 3b53685301de..edb94efd265e 100644 --- a/drivers/net/usb/asix.h +++ b/drivers/net/usb/asix.h @@ -205,8 +205,7 @@ struct sk_buff *asix_tx_fixup(struct usbnet *dev, struct sk_buff *skb, int asix_set_sw_mii(struct usbnet *dev, int in_pm); int asix_set_hw_mii(struct usbnet *dev, int in_pm); -int asix_read_phy_addr(struct usbnet *dev, int internal); -int asix_get_phy_addr(struct usbnet *dev); +int asix_read_phy_addr(struct usbnet *dev, bool internal); int asix_sw_reset(struct usbnet *dev, u8 flags, int in_pm); |