diff options
author | hayeswang <hayeswang@realtek.com> | 2014-01-03 11:21:56 +0800 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2014-01-03 20:37:26 -0500 |
commit | 45ea3932e261af147187ceefb43456c7f8e3b288 (patch) | |
tree | 6aa1bbce4f4f120e77df2ddbc8176d15630a2ca4 | |
parent | c018b7af5e9e59c19df39a86e3da58e6293d922b (diff) |
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>
-rw-r--r-- | drivers/net/usb/r8152.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/usb/r8152.c b/drivers/net/usb/r8152.c index e3d878c1cec..13fabbbaf54 100644 --- a/drivers/net/usb/r8152.c +++ b/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; |