From: navin patidar Date: Tue, 10 Sep 2013 05:14:07 +0000 (+0530) Subject: staging: usbip: stub_main: correctly handle return value X-Git-Tag: firefly_0821_release~176^2~5057^2~632 X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=1583aeb53ceac99fb0f92bca08196803d7250b95;p=firefly-linux-kernel-4.4.55.git staging: usbip: stub_main: 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/stub_main.c b/drivers/staging/usbip/stub_main.c index 33027cce6700..baf857f7cc88 100644 --- a/drivers/staging/usbip/stub_main.c +++ b/drivers/staging/usbip/stub_main.c @@ -255,14 +255,14 @@ static int __init usbip_host_init(void) } ret = usb_register(&stub_driver); - if (ret < 0) { + if (ret) { pr_err("usb_register failed %d\n", ret); goto err_usb_register; } ret = driver_create_file(&stub_driver.drvwrap.driver, &driver_attr_match_busid); - if (ret < 0) { + if (ret) { pr_err("driver_create_file failed\n"); goto err_create_file; }