projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
5ec9b89
)
usb/host/fotg210: Remove useless else statement
author
Peter Senna Tschudin
<
[email protected]
>
Mon, 12 Oct 2015 21:22:34 +0000
(23:22 +0200)
committer
Greg Kroah-Hartman
<
[email protected]
>
Sat, 17 Oct 2015 06:46:22 +0000
(23:46 -0700)
This patch remove an else statement after a return to make the code
easier to understand.
Signed-off-by: Peter Senna Tschudin <
[email protected]
>
Signed-off-by: Greg Kroah-Hartman <
[email protected]
>
drivers/usb/host/fotg210-hcd.c
patch
|
blob
|
history
diff --git
a/drivers/usb/host/fotg210-hcd.c
b/drivers/usb/host/fotg210-hcd.c
index 2a5fbc439f3135e3683a0e7c34bcdeebfcfea8cb..ceb696f10710b1ec2d81d972f12525bcabb4ec83 100644
(file)
--- a/
drivers/usb/host/fotg210-hcd.c
+++ b/
drivers/usb/host/fotg210-hcd.c
@@
-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",
index + 1);
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;
}