]> git.baikalelectronics.ru Git - kernel.git/commitdiff
usbip: simplify the return expression of usbip_core_init()
authorLiu Shixin <liushixin2@huawei.com>
Tue, 15 Sep 2020 03:26:31 +0000 (11:26 +0800)
committerGreg 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

index e4b96674c40526c75726c9b5c53a81d427f83d14..4ce6c6a45eb11a643f2677b21bf95f7c7d2f008d 100644 (file)
@@ -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)