summaryrefslogtreecommitdiff
path: root/drivers/usb/host
diff options
context:
space:
mode:
authorPeter Senna Tschudin <peter.senna@gmail.com>2015-10-17 19:28:45 (GMT)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2015-10-18 03:49:50 (GMT)
commitffa2366666f06ce1df3296d106d90e0c2e0cd6b7 (patch)
treeeb452aa25baef1b1d8400cc8234029ee8938a009 /drivers/usb/host
parent539669779a8e369912d86dc4048175cc47f20c33 (diff)
downloadlinux-ffa2366666f06ce1df3296d106d90e0c2e0cd6b7.tar.xz
usb/host/fotg210: Remove return statement inside if
This patch make changes to an if else statement which simplifies the code allowing to remove a return. CC: Joe Perches <joe@perches.com> 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.c12
1 files changed, 5 insertions, 7 deletions
diff --git a/drivers/usb/host/fotg210-hcd.c b/drivers/usb/host/fotg210-hcd.c
index 3502012..787f4e3 100644
--- a/drivers/usb/host/fotg210-hcd.c
+++ b/drivers/usb/host/fotg210-hcd.c
@@ -1401,15 +1401,13 @@ static int check_reset_complete(struct fotg210_hcd *fotg210, int index,
return port_status;
/* if reset finished and it's still not enabled -- handoff */
- if (!(port_status & PORT_PE)) {
+ if (!(port_status & PORT_PE))
/* with integrated TT, there's nobody to hand it to! */
- fotg210_dbg(fotg210,
- "Failed to enable port %d on root hub TT\n",
+ fotg210_dbg(fotg210, "Failed to enable port %d on root hub TT\n",
+ index + 1);
+ else
+ fotg210_dbg(fotg210, "port %d reset complete, port enabled\n",
index + 1);
- return port_status;
- }
- fotg210_dbg(fotg210, "port %d reset complete, port enabled\n",
- index + 1);
return port_status;
}