Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit ffa23666 authored by Peter Senna Tschudin's avatar Peter Senna Tschudin Committed by Greg Kroah-Hartman
Browse files

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: default avatarPeter Senna Tschudin <peter.senna@gmail.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent 53966977
Loading
Loading
Loading
Loading
+5 −7
Original line number Diff line number Diff line
@@ -1401,13 +1401,11 @@ 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);
		return port_status;
	}
	else
		fotg210_dbg(fotg210, "port %d reset complete, port enabled\n",
				index + 1);