OSDN Git Service
(root)
/
android-x86
/
kernel.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
33027cc
..
baf857f
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;
}