mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-29 11:11:45 -04:00
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 <[email protected]> Signed-off-by: Peter Senna Tschudin <[email protected]> Signed-off-by: Greg Kroah-Hartman <[email protected]>
This commit is contained in:
parent
539669779a
commit
ffa2366666
1 changed files with 5 additions and 7 deletions
|
|
@ -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;
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue