Commit 4d421950 authored by navin patidar's avatar navin patidar Committed by Greg Kroah-Hartman

staging: usbip: vhci_hcd: correctly handle return value

ret == 0 means success, anything else is failure.
Signed-off-by: default avatarnavin patidar <navinp@cdac.in>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent 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%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment