usb/host/fotg210: Remove useless else statement
This patch remove an else statement after a return to make the code easier to understand. Signed-off-by: Peter Senna Tschudin <peter.senna@gmail.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
parent
5ec9b891a2
commit
f238b4e2b3
1 changed files with 2 additions and 3 deletions
|
@ -1402,10 +1402,9 @@ static int check_reset_complete(struct fotg210_hcd *fotg210, int index,
|
||||||
"Failed to enable port %d on root hub TT\n",
|
"Failed to enable port %d on root hub TT\n",
|
||||||
index + 1);
|
index + 1);
|
||||||
return port_status;
|
return port_status;
|
||||||
} else {
|
|
||||||
fotg210_dbg(fotg210, "port %d reset complete, port enabled\n",
|
|
||||||
index + 1);
|
|
||||||
}
|
}
|
||||||
|
fotg210_dbg(fotg210, "port %d reset complete, port enabled\n",
|
||||||
|
index + 1);
|
||||||
|
|
||||||
return port_status;
|
return port_status;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue