浏览代码

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>
Luis de Bethencourt 10 年之前
父节点
当前提交
d0452fe09a
共有 1 个文件被更改,包括 0 次插入1 次删除
  1. 0 1
      drivers/usb/host/fotg210-hcd.c

+ 0 - 1
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;