From: Liu Shixin Date: Tue, 15 Sep 2020 03:26:31 +0000 (+0800) Subject: usbip: simplify the return expression of usbip_core_init() X-Git-Tag: v5.15~2673^2~95 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=a4e6451d3214e160107a17304fb90fb11bd6513b;p=platform%2Fkernel%2Flinux-starfive.git usbip: simplify the return expression of usbip_core_init() Simplify the return expression. Acked-by: Shuah Khan Signed-off-by: Liu Shixin Link: https://lore.kernel.org/r/20200915032631.1772673-1-liushixin2@huawei.com Signed-off-by: Greg Kroah-Hartman --- 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)