diff options
author | Christian Riesch <christian.riesch@omicron.at> | 2012-07-18 12:56:52 +0200 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2012-07-18 09:32:57 -0700 |
commit | fcc24db5e8a75ed3ce2238f4ad1b3bef8634f7e1 (patch) | |
tree | b5727fbf2d7d023012492a844285cd7f47b835d7 /drivers/net/usb/ax88172a.c | |
parent | e371589917011efe6ff8c7dfb4e9e81934ac5855 (diff) |
asix: Fix return value in AX88172A driver bind function
Return -ENOTSUPP if the initialization fails because the
device is configured for a mode that is not supported by the driver.
Signed-off-by: Christian Riesch <christian.riesch@omicron.at>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/usb/ax88172a.c')
-rw-r--r-- | drivers/net/usb/ax88172a.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/net/usb/ax88172a.c b/drivers/net/usb/ax88172a.c index 534a144bd9e..3d0f8fa0538 100644 --- a/drivers/net/usb/ax88172a.c +++ b/drivers/net/usb/ax88172a.c @@ -274,6 +274,7 @@ static int ax88172a_bind(struct usbnet *dev, struct usb_interface *intf) break; default: netdev_err(dev->net, "Interface mode not supported by driver\n"); + ret = -ENOTSUPP; goto free; } |