浏览代码

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>
Christian Riesch 13 年之前
父节点
当前提交
fcc24db5e8
共有 1 个文件被更改,包括 1 次插入0 次删除
  1. 1 0
      drivers/net/usb/ax88172a.c

+ 1 - 0
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;
 	}