usb: host: fotg210: remove unreachable code
authorLuis de Bethencourt <luisbg@osg.samsung.com>
Mon, 28 Sep 2015 16:57:59 +0000 (17:57 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sun, 4 Oct 2015 09:51:58 +0000 (10:51 +0100)
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>
drivers/usb/host/fotg210-hcd.c

index 287d5954002d4b0c28a7b26199db5c1ea87149f3..dea513ebf7f9ba8c82f29801daf02edb85604b17 100644 (file)
@@ -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;