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

Commit c611ccb4 authored by Felipe Balbi's avatar Felipe Balbi
Browse files

usb: dwc3: ep0: fix 'transfered' typo



trivial patch. No functional changes.

Signed-off-by: default avatarFelipe Balbi <balbi@ti.com>
parent 91db07dc
Loading
Loading
Loading
Loading
+3 −3
Original line number Diff line number Diff line
@@ -639,7 +639,7 @@ static void dwc3_ep0_complete_data(struct dwc3 *dwc,
	struct usb_request	*ur;
	struct dwc3_trb		trb;
	struct dwc3_ep		*dep;
	u32			transfered;
	u32			transferred;
	u8			epnum;

	epnum = event->endpoint_number;
@@ -655,8 +655,8 @@ static void dwc3_ep0_complete_data(struct dwc3 *dwc,

	dwc3_trb_to_nat(dwc->ep0_trb, &trb);

	transfered = ur->length - trb.length;
	ur->actual += transfered;
	transferred = ur->length - trb.length;
	ur->actual += transferred;

	if ((epnum & 1) && ur->actual < ur->length) {
		/* for some reason we did not get everything out */