projects
/
platform
/
kernel
/
linux-starfive.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
61ce6e2
)
usbip: simplify the return expression of usbip_core_init()
author
Liu Shixin
<liushixin2@huawei.com>
Tue, 15 Sep 2020 03:26:31 +0000
(11:26 +0800)
committer
Greg Kroah-Hartman
<gregkh@linuxfoundation.org>
Wed, 16 Sep 2020 08:54:49 +0000
(10:54 +0200)
Simplify the return expression.
Acked-by: Shuah Khan <skhan@linuxfoundation.org>
Signed-off-by: Liu Shixin <liushixin2@huawei.com>
Link:
https://lore.kernel.org/r/20200915032631.1772673-1-liushixin2@huawei.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/usb/usbip/usbip_common.c
patch
|
blob
|
history
diff --git
a/drivers/usb/usbip/usbip_common.c
b/drivers/usb/usbip/usbip_common.c
index e4b96674c40526c75726c9b5c53a81d427f83d14..4ce6c6a45eb11a643f2677b21bf95f7c7d2f008d 100644
(file)
--- a/
drivers/usb/usbip/usbip_common.c
+++ b/
drivers/usb/usbip/usbip_common.c
@@
-755,13
+755,7
@@
EXPORT_SYMBOL_GPL(usbip_recv_xbuff);
static int __init usbip_core_init(void)
{
- int ret;
-
- ret = usbip_init_eh();
- if (ret)
- return ret;
-
- return 0;
+ return usbip_init_eh();
}
static void __exit usbip_core_exit(void)