浏览代码

r8152: fix the wrong return value

The return value should be the boolean value, not the error code.

Signed-off-by: Hayes Wang <hayeswang@realtek.com>
Spotted-by: Dan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
hayeswang 11 年之前
父节点
当前提交
45ea3932e2
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      drivers/net/usb/r8152.c

+ 1 - 1
drivers/net/usb/r8152.c

@@ -2708,7 +2708,7 @@ static bool rtl_ops_init(struct r8152 *tp, const struct usb_device_id *id)
 			ops->unload		= rtl8153_unload;
 			break;
 		default:
-			ret = -EFAULT;
+			ret = false;
 			break;
 		}
 		break;