1
0
Fork 0

staging: usbip: vhci_hcd: correctly handle return value

ret == 0 means success, anything else is failure.

Signed-off-by: navin patidar <navinp@cdac.in>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
hifive-unleashed-5.1
navin patidar 2013-09-10 10:43:39 +05:30 committed by Greg Kroah-Hartman
parent 1583aeb53c
commit 4d42195021
1 changed files with 2 additions and 2 deletions

View File

@ -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");