diff options
author | Liu Shixin <liushixin2@huawei.com> | 2020-09-15 11:26:31 +0800 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2020-09-16 10:54:49 +0200 |
commit | a4e6451d3214e160107a17304fb90fb11bd6513b (patch) | |
tree | b26612b39d0c2f5688313406f99032dca6f815dd | |
parent | 61ce6e2aa667539ab63d59203474d9d4cd976546 (diff) | |
download | linux-a4e6451d3214e160107a17304fb90fb11bd6513b.tar.bz2 |
usbip: simplify the return expression of usbip_core_init()
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>
-rw-r--r-- | drivers/usb/usbip/usbip_common.c | 8 |
1 files changed, 1 insertions, 7 deletions
diff --git a/drivers/usb/usbip/usbip_common.c b/drivers/usb/usbip/usbip_common.c index e4b96674c405..4ce6c6a45eb1 100644 --- 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) |