Skip to contentSkip to conversation

staging: usbip: vhci_hcd: correctly handle return value

PATCH In review navin patidar 1 participant 1 message Sep 10, 2013 Staging

lore
Share & tools
lore
#0 lore raw

PATCH 2/3 staging: usbip: vhci_hcd: correctly handle return value

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

---
 drivers/staging/usbip/vhci_hcd.c |    4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
drivers/staging/usbip/vhci_hcd.c +2 -2
index d7974cb..b3c9217 100644
@@ -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");
Signature · 1 line
1.7.10.4