projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
bb7871a
)
usb: wusbcore: remove unreachable code
author
Sudip Mukherjee
<
[email protected]
>
Thu, 7 Apr 2016 15:35:07 +0000
(21:05 +0530)
committer
Greg Kroah-Hartman
<
[email protected]
>
Mon, 18 Apr 2016 19:33:15 +0000
(
04:33
+0900)
The call to wusb_dev_sysfs_rm() which is just after return will never
be executed. On checking the code, wusb_dev_sysfs_add() is the last one
to be executed so even if that fails we do not need wusb_dev_sysfs_rm()
in the error path.
Signed-off-by: Sudip Mukherjee <
[email protected]
>
Signed-off-by: Greg Kroah-Hartman <
[email protected]
>
drivers/usb/wusbcore/devconnect.c
patch
|
blob
|
history
diff --git
a/drivers/usb/wusbcore/devconnect.c
b/drivers/usb/wusbcore/devconnect.c
index 3f4f5fbded55bedeb25dabe6c820388b44969752..bf9551735938c2e0dda3c9a58017888c63249d3f 100644
(file)
--- a/
drivers/usb/wusbcore/devconnect.c
+++ b/
drivers/usb/wusbcore/devconnect.c
@@
-893,7
+893,6
@@
out:
error_nodev:
return;
- wusb_dev_sysfs_rm(wusb_dev);
error_add_sysfs:
wusb_dev_bos_rm(wusb_dev);
error_bos_add: