From: navin patidar Date: Tue, 10 Sep 2013 05:13:39 +0000 (+0530) Subject: staging: usbip: vhci_hcd: correctly handle return value X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=4d42195021d8cb37600b2ecfaba982dd96e7fc01;p=linux-beck.git staging: usbip: vhci_hcd: correctly handle return value ret == 0 means success, anything else is failure. Signed-off-by: navin patidar Signed-off-by: Greg Kroah-Hartman --- 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");