Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 5dda5be9 authored by Igor Kotrasinski's avatar Igor Kotrasinski Committed by Felipe Balbi
Browse files

usb: gadget: dummy_hcd: fix unneeded else-if condition



We already know at this point that to_host is false.

Signed-off-by: default avatarIgor Kotrasinski <i.kotrasinsk@samsung.com>
Signed-off-by: default avatarFelipe Balbi <balbi@ti.com>
parent 21c3ee93
Loading
Loading
Loading
Loading
+1 −1
Original line number Original line Diff line number Diff line
@@ -1421,7 +1421,7 @@ static int transfer(struct dummy_hcd *dum_hcd, struct urb *urb,
					*status = -EOVERFLOW;
					*status = -EOVERFLOW;
				else
				else
					*status = 0;
					*status = 0;
			} else if (!to_host) {
			} else {
				*status = 0;
				*status = 0;
				if (host_len > dev_len)
				if (host_len > dev_len)
					req->req.status = -EOVERFLOW;
					req->req.status = -EOVERFLOW;