diff options
author | navin patidar <navinp@cdac.in> | 2013-09-10 10:43:39 +0530 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2013-09-25 16:30:46 -0700 |
commit | 4d42195021d8cb37600b2ecfaba982dd96e7fc01 (patch) | |
tree | ae4f958c9ee3aab63f69ef60703c0bc7d74f8aa8 /drivers | |
parent | 1583aeb53ceac99fb0f92bca08196803d7250b95 (diff) |
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>
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/staging/usbip/vhci_hcd.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/staging/usbip/vhci_hcd.c b/drivers/staging/usbip/vhci_hcd.c index d7974cb2cc6f..b3c9217c38e9 100644 --- a/drivers/staging/usbip/vhci_hcd.c +++ b/drivers/staging/usbip/vhci_hcd.c @@ -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"); |