summaryrefslogtreecommitdiff
path: root/drivers/net/usb
diff options
context:
space:
mode:
authorhayeswang <hayeswang@realtek.com>2014-01-03 07:21:56 +0400
committerDavid S. Miller <davem@davemloft.net>2014-01-04 05:37:26 +0400
commit45ea3932e261af147187ceefb43456c7f8e3b288 (patch)
tree6aa1bbce4f4f120e77df2ddbc8176d15630a2ca4 /drivers/net/usb
parentc018b7af5e9e59c19df39a86e3da58e6293d922b (diff)
downloadlinux-45ea3932e261af147187ceefb43456c7f8e3b288.tar.xz
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>
Diffstat (limited to 'drivers/net/usb')
-rw-r--r--drivers/net/usb/r8152.c2
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;