mirror of https://gitee.com/openkylin/linux.git
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>
This commit is contained in:
parent
21c3ee9386
commit
5dda5be9d5
|
@ -1421,7 +1421,7 @@ static int transfer(struct dummy_hcd *dum_hcd, struct urb *urb,
|
|||
*status = -EOVERFLOW;
|
||||
else
|
||||
*status = 0;
|
||||
} else if (!to_host) {
|
||||
} else {
|
||||
*status = 0;
|
||||
if (host_len > dev_len)
|
||||
req->req.status = -EOVERFLOW;
|
||||
|
|
Loading…
Reference in New Issue