summaryrefslogtreecommitdiffstats
path: root/drivers/usb/host
diff options
context:
space:
mode:
authorPeter Senna Tschudin <peter.senna@gmail.com>2015-10-12 23:22:34 +0200
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2015-10-16 23:46:22 -0700
commitf238b4e2b39e94dc9770243c472a80fa41190db0 (patch)
tree2e72d823230e6cd7968e3205d05002b6017c040a /drivers/usb/host
parent5ec9b891a2da7a014245feedc00dc66f0da7a271 (diff)
downloadlinux-f238b4e2b39e94dc9770243c472a80fa41190db0.tar.bz2
usb/host/fotg210: Remove useless else statement
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>
Diffstat (limited to 'drivers/usb/host')
-rw-r--r--drivers/usb/host/fotg210-hcd.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/drivers/usb/host/fotg210-hcd.c b/drivers/usb/host/fotg210-hcd.c
index 2a5fbc439f31..ceb696f10710 100644
--- a/drivers/usb/host/fotg210-hcd.c
+++ b/drivers/usb/host/fotg210-hcd.c
@@ -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;
}