提交 45ea3932 编写于 作者: H hayeswang 提交者: David S. Miller

r8152: fix the wrong return value

The return value should be the boolean value, not the error code.
Signed-off-by: NHayes Wang <hayeswang@realtek.com>
Spotted-by: NDan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: NDavid S. Miller <davem@davemloft.net>
上级 c018b7af
......@@ -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;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册