Message ID | 1342609012-3075-1-git-send-email-christian.riesch@omicron.at |
---|---|
State | Accepted, archived |
Delegated to: | David Miller |
Headers | show |
From: Christian Riesch <christian.riesch@omicron.at> Date: Wed, 18 Jul 2012 12:56:52 +0200 > 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> Applied, thanks. -- To unsubscribe from this list: send the line "unsubscribe netdev" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html
diff --git a/drivers/net/usb/ax88172a.c b/drivers/net/usb/ax88172a.c index 534a144..3d0f8fa 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; }
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> --- drivers/net/usb/ax88172a.c | 1 + 1 files changed, 1 insertions(+), 0 deletions(-)