commit | 7ce04cff59d510c88bfa0745202281cf3c6417ae | [log] [tgz] |
---|---|---|
author | Sudip Mukherjee <sudipm.mukherjee@gmail.com> | Thu Apr 07 21:05:07 2016 +0530 |
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | Tue Apr 19 04:33:15 2016 +0900 |
tree | 21a7aeb68ea35902b3a7b171f521b29c0479b9f8 | |
parent | bb7871ad99ea814565c3d6b551e039c71f24cbb3 [diff] |
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>