summaryrefslogtreecommitdiffstats
path: root/drivers/usb
diff options
context:
space:
mode:
authorLuis de Bethencourt2015-09-28 18:57:59 +0200
committerGreg Kroah-Hartman2015-10-04 11:51:58 +0200
commitd0452fe09a90d4aff5029d3c053014ae2caeec94 (patch)
treee38c7038bb345e2cfc297add39a140efc75f10aa /drivers/usb
parentusb: host: uhci-platform: Fix module autoload for OF platform driver (diff)
downloadkernel-qcow2-linux-d0452fe09a90d4aff5029d3c053014ae2caeec94.tar.gz
kernel-qcow2-linux-d0452fe09a90d4aff5029d3c053014ae2caeec94.tar.xz
kernel-qcow2-linux-d0452fe09a90d4aff5029d3c053014ae2caeec94.zip
usb: host: fotg210: remove unreachable code
Before running the platform_driver_unregister() the code will either return retval or jump to clean. Removing this line that is unreachable. Signed-off-by: Luis de Bethencourt <luisbg@osg.samsung.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/usb')
-rw-r--r--drivers/usb/host/fotg210-hcd.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/drivers/usb/host/fotg210-hcd.c b/drivers/usb/host/fotg210-hcd.c
index 287d5954002d..dea513ebf7f9 100644
--- a/drivers/usb/host/fotg210-hcd.c
+++ b/drivers/usb/host/fotg210-hcd.c
@@ -5928,7 +5928,6 @@ static int __init fotg210_hcd_init(void)
goto clean;
return retval;
- platform_driver_unregister(&fotg210_hcd_driver);
clean:
debugfs_remove(fotg210_debug_root);
fotg210_debug_root = NULL;