mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-10-05 00:20:32 +00:00
usb: wusbcore: remove unreachable code
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 <sudip.mukherjee@codethink.co.uk> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
parent
bb7871ad99
commit
7ce04cff59
1 changed files with 0 additions and 1 deletions
|
@ -893,7 +893,6 @@ static void wusb_dev_add_ncb(struct usb_device *usb_dev)
|
||||||
error_nodev:
|
error_nodev:
|
||||||
return;
|
return;
|
||||||
|
|
||||||
wusb_dev_sysfs_rm(wusb_dev);
|
|
||||||
error_add_sysfs:
|
error_add_sysfs:
|
||||||
wusb_dev_bos_rm(wusb_dev);
|
wusb_dev_bos_rm(wusb_dev);
|
||||||
error_bos_add:
|
error_bos_add:
|
||||||
|
|
Loading…
Reference in a new issue