diff options
author | Peter Senna Tschudin <peter.senna@gmail.com> | 2015-10-17 15:28:45 -0400 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2015-10-17 23:49:50 -0400 |
commit | ffa2366666f06ce1df3296d106d90e0c2e0cd6b7 (patch) | |
tree | eb452aa25baef1b1d8400cc8234029ee8938a009 | |
parent | 539669779a8e369912d86dc4048175cc47f20c33 (diff) |
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>
-rw-r--r-- | drivers/usb/host/fotg210-hcd.c | 12 |
1 files changed, 5 insertions, 7 deletions
diff --git a/drivers/usb/host/fotg210-hcd.c b/drivers/usb/host/fotg210-hcd.c index 35020129e2c8..787f4e3d16d8 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, | |||
1401 | return port_status; | 1401 | return port_status; |
1402 | 1402 | ||
1403 | /* if reset finished and it's still not enabled -- handoff */ | 1403 | /* if reset finished and it's still not enabled -- handoff */ |
1404 | if (!(port_status & PORT_PE)) { | 1404 | if (!(port_status & PORT_PE)) |
1405 | /* with integrated TT, there's nobody to hand it to! */ | 1405 | /* with integrated TT, there's nobody to hand it to! */ |
1406 | fotg210_dbg(fotg210, | 1406 | fotg210_dbg(fotg210, "Failed to enable port %d on root hub TT\n", |
1407 | "Failed to enable port %d on root hub TT\n", | 1407 | index + 1); |
1408 | else | ||
1409 | fotg210_dbg(fotg210, "port %d reset complete, port enabled\n", | ||
1408 | index + 1); | 1410 | index + 1); |
1409 | return port_status; | ||
1410 | } | ||
1411 | fotg210_dbg(fotg210, "port %d reset complete, port enabled\n", | ||
1412 | index + 1); | ||
1413 | 1411 | ||
1414 | return port_status; | 1412 | return port_status; |
1415 | } | 1413 | } |