summaryrefslogtreecommitdiff
path: root/drivers
diff options
context:
space:
mode:
authornavin patidar <navinp@cdac.in>2013-09-10 10:44:07 +0530
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2013-09-25 16:30:45 -0700
commit1583aeb53ceac99fb0f92bca08196803d7250b95 (patch)
tree104ff1901cf99618f90df61faca38619bfb03506 /drivers
parent14ab3daaea04da644f96ad66902013fb72b99406 (diff)
staging: usbip: stub_main: 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/stub_main.c4
1 files changed, 2 insertions, 2 deletions
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;
}