mirror of https://gitee.com/openkylin/linux.git
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>
This commit is contained in:
parent
61ce6e2aa6
commit
a4e6451d32
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue