diff options
author | Igor Kotrasinski <i.kotrasinsk@samsung.com> | 2015-09-15 16:55:30 +0200 |
---|---|---|
committer | Felipe Balbi <balbi@ti.com> | 2015-09-21 14:42:35 -0500 |
commit | 5dda5be9d501084e8a6242e6dbeb8eea1daf01c8 (patch) | |
tree | 00fe40be3f98a8adaa0f01ddaed4748d4a92298c /drivers/usb | |
parent | 21c3ee93867694e8c7382ff77b4645b50d3233e9 (diff) |
usb: gadget: dummy_hcd: fix unneeded else-if condition
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>
Diffstat (limited to 'drivers/usb')
-rw-r--r-- | drivers/usb/gadget/udc/dummy_hcd.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/usb/gadget/udc/dummy_hcd.c b/drivers/usb/gadget/udc/dummy_hcd.c index 93b38f88e7b2..69a0b3fa4737 100644 --- 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; |