]> git.karo-electronics.de Git - linux-beck.git/commitdiff
usb/host/fotg210: Remove useless else statement
authorPeter Senna Tschudin <peter.senna@gmail.com>
Mon, 12 Oct 2015 21:22:34 +0000 (23:22 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sat, 17 Oct 2015 06:46:22 +0000 (23:46 -0700)
This patch remove an else statement after a return to make the code
easier to understand.

Signed-off-by: Peter Senna Tschudin <peter.senna@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/usb/host/fotg210-hcd.c

index 2a5fbc439f3135e3683a0e7c34bcdeebfcfea8cb..ceb696f10710b1ec2d81d972f12525bcabb4ec83 100644 (file)
@@ -1402,10 +1402,9 @@ static int check_reset_complete(struct fotg210_hcd *fotg210, int index,
                                "Failed to enable port %d on root hub TT\n",
                                index + 1);
                return port_status;
-       } else {
-               fotg210_dbg(fotg210, "port %d reset complete, port enabled\n",
-                               index + 1);
        }
+       fotg210_dbg(fotg210, "port %d reset complete, port enabled\n",
+                       index + 1);
 
        return port_status;
 }