aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorhayeswang <hayeswang@realtek.com>2014-01-03 11:21:56 +0800
committerDavid S. Miller <davem@davemloft.net>2014-01-03 20:37:26 -0500
commit45ea3932e261af147187ceefb43456c7f8e3b288 (patch)
tree6aa1bbce4f4f120e77df2ddbc8176d15630a2ca4
parentc018b7af5e9e59c19df39a86e3da58e6293d922b (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.c2
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;