diff options
author | hayeswang <hayeswang@realtek.com> | 2014-01-03 04:21:56 +0100 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2014-01-04 02:37:26 +0100 |
commit | 45ea3932e261af147187ceefb43456c7f8e3b288 (patch) | |
tree | 6aa1bbce4f4f120e77df2ddbc8176d15630a2ca4 | |
parent | smsc9420: use named constants for pci_power_t values (diff) | |
download | linux-45ea3932e261af147187ceefb43456c7f8e3b288.tar.xz linux-45ea3932e261af147187ceefb43456c7f8e3b288.zip |
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 e3d878c1cecf..13fabbbaf54d 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; |