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:
1583aeb
)
staging: usbip: vhci_hcd: correctly handle return value
author
navin patidar
<navinp@cdac.in>
Tue, 10 Sep 2013 05:13:39 +0000
(10:43 +0530)
committer
Greg Kroah-Hartman
<gregkh@linuxfoundation.org>
Wed, 25 Sep 2013 23:30:46 +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/vhci_hcd.c
patch
|
blob
|
history
diff --git
a/drivers/staging/usbip/vhci_hcd.c
b/drivers/staging/usbip/vhci_hcd.c
index
d7974cb
..
b3c9217
100644
(file)
--- a/
drivers/staging/usbip/vhci_hcd.c
+++ b/
drivers/staging/usbip/vhci_hcd.c
@@
-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");