Commit 45ea3932 authored by hayeswang's avatar hayeswang Committed by David S. Miller

r8152: fix the wrong return value

The return value should be the boolean value, not the error code.
Signed-off-by: default avatarHayes Wang <hayeswang@realtek.com>
Spotted-by: default avatarDan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent c018b7af
...@@ -2708,7 +2708,7 @@ static bool rtl_ops_init(struct r8152 *tp, const struct usb_device_id *id) ...@@ -2708,7 +2708,7 @@ static bool rtl_ops_init(struct r8152 *tp, const struct usb_device_id *id)
ops->unload = rtl8153_unload; ops->unload = rtl8153_unload;
break; break;
default: default:
ret = -EFAULT; ret = false;
break; break;
} }
break; break;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment