提交 ffa23666 编写于 作者: P Peter Senna Tschudin 提交者: Greg Kroah-Hartman

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: NPeter Senna Tschudin <peter.senna@gmail.com>
Signed-off-by: NGreg Kroah-Hartman <gregkh@linuxfoundation.org>
上级 53966977
...@@ -1401,15 +1401,13 @@ static int check_reset_complete(struct fotg210_hcd *fotg210, int index, ...@@ -1401,15 +1401,13 @@ static int check_reset_complete(struct fotg210_hcd *fotg210, int index,
return port_status; return port_status;
/* if reset finished and it's still not enabled -- handoff */ /* 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! */ /* with integrated TT, there's nobody to hand it to! */
fotg210_dbg(fotg210, fotg210_dbg(fotg210, "Failed to enable port %d on root hub TT\n",
"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); index + 1);
return port_status;
}
fotg210_dbg(fotg210, "port %d reset complete, port enabled\n",
index + 1);
return port_status; return port_status;
} }
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册