From: Peter Senna Tschudin Date: Sat, 17 Oct 2015 19:28:45 +0000 (+0200) Subject: usb/host/fotg210: Remove return statement inside if X-Git-Tag: KARO-TX6UL-2015-11-03~36^2~13 X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=ffa2366666f06ce1df3296d106d90e0c2e0cd6b7;p=karo-tx-linux.git 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 Signed-off-by: Peter Senna Tschudin Signed-off-by: Greg Kroah-Hartman --- 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, 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; }