netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH net-next] asix: Fix return value in AX88172A driver bind function
@ 2012-07-18 10:56 Christian Riesch
  2012-07-18 16:33 ` David Miller
  0 siblings, 1 reply; 2+ messages in thread
From: Christian Riesch @ 2012-07-18 10:56 UTC (permalink / raw)
  To: netdev; +Cc: Christian Riesch

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(-)

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

^ permalink raw reply related	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2012-07-18 16:33 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-07-18 10:56 [PATCH net-next] asix: Fix return value in AX88172A driver bind function Christian Riesch
2012-07-18 16:33 ` David Miller

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).