[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-ID: <1342609012-3075-1-git-send-email-christian.riesch@omicron.at>
Date: Wed, 18 Jul 2012 12:56:52 +0200
From: Christian Riesch <christian.riesch@...cron.at>
To: <netdev@...r.kernel.org>
CC: Christian Riesch <christian.riesch@...cron.at>
Subject: [PATCH net-next] 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@...cron.at>
---
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 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;
}
--
1.7.0.4
--
To unsubscribe from this list: send the line "unsubscribe netdev" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Powered by blists - more mailing lists