projects
/
GitHub
/
LineageOS
/
android_kernel_motorola_exynos9610.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
c018b7a
)
r8152: fix the wrong return value
author
hayeswang
<hayeswang@realtek.com>
Fri, 3 Jan 2014 03:21:56 +0000
(11:21 +0800)
committer
David S. Miller
<davem@davemloft.net>
Sat, 4 Jan 2014 01:37:26 +0000
(20:37 -0500)
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>
drivers/net/usb/r8152.c
patch
|
blob
|
blame
|
history
diff --git
a/drivers/net/usb/r8152.c
b/drivers/net/usb/r8152.c
index e3d878c1cecfc508b8199540de75915ad98d88b0..13fabbbaf54d74c964abd2accd3539582c707674 100644
(file)
--- 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;