提交 4d421950 编写于 作者: N navin patidar 提交者: Greg Kroah-Hartman

staging: usbip: vhci_hcd: correctly handle return value

ret == 0 means success, anything else is failure.
Signed-off-by: Nnavin patidar <navinp@cdac.in>
Signed-off-by: NGreg Kroah-Hartman <gregkh@linuxfoundation.org>
上级 1583aeb5
......@@ -1146,11 +1146,11 @@ static int __init vhci_hcd_init(void)
return -ENODEV;
ret = platform_driver_register(&vhci_driver);
if (ret < 0)
if (ret)
goto err_driver_register;
ret = platform_device_register(&the_pdev);
if (ret < 0)
if (ret)
goto err_platform_device_register;
pr_info(DRIVER_DESC " v" USBIP_VERSION "\n");
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册