projects
/
firefly-linux-kernel-4.4.55.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
14ab3da
)
staging: usbip: stub_main: correctly handle return value
author
navin patidar
<navinp@cdac.in>
Tue, 10 Sep 2013 05:14:07 +0000
(10:44 +0530)
committer
Greg Kroah-Hartman
<gregkh@linuxfoundation.org>
Wed, 25 Sep 2013 23:30:45 +0000
(16:30 -0700)
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>
drivers/staging/usbip/stub_main.c
patch
|
blob
|
history
diff --git
a/drivers/staging/usbip/stub_main.c
b/drivers/staging/usbip/stub_main.c
index 33027cce6700506e6abaca6db07d5f8cf594a6cd..baf857f7cc88ac7873e8acaf790a9cb8de9b5aa3 100644
(file)
--- 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;
}