Skip to content

Commit

Permalink
usb: host: fotg210: remove unreachable code
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Luis de Bethencourt authored and Greg Kroah-Hartman committed Oct 4, 2015
1 parent e2f3951 commit d0452fe
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion drivers/usb/host/fotg210-hcd.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit d0452fe

Please sign in to comment.