projects
/
GitHub
/
moto-9609
/
android_kernel_motorola_exynos9610.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
21c3ee9
)
usb: gadget: dummy_hcd: fix unneeded else-if condition
author
Igor Kotrasinski
<i.kotrasinsk@samsung.com>
Tue, 15 Sep 2015 14:55:30 +0000
(16:55 +0200)
committer
Felipe Balbi
<balbi@ti.com>
Mon, 21 Sep 2015 19:42:35 +0000
(14:42 -0500)
We already know at this point that to_host is false.
Signed-off-by: Igor Kotrasinski <i.kotrasinsk@samsung.com>
Signed-off-by: Felipe Balbi <balbi@ti.com>
drivers/usb/gadget/udc/dummy_hcd.c
patch
|
blob
|
blame
|
history
diff --git
a/drivers/usb/gadget/udc/dummy_hcd.c
b/drivers/usb/gadget/udc/dummy_hcd.c
index 93b38f88e7b2c8fad9e3bcfc20c53bd02979d621..69a0b3fa4737078a526625d2288f2b9c5369b43b 100644
(file)
--- a/
drivers/usb/gadget/udc/dummy_hcd.c
+++ b/
drivers/usb/gadget/udc/dummy_hcd.c
@@
-1421,7
+1421,7
@@
top:
*status = -EOVERFLOW;
else
*status = 0;
- } else
if (!to_host)
{
+ } else {
*status = 0;
if (host_len > dev_len)
req->req.status = -EOVERFLOW;