]> git.karo-electronics.de Git - linux-beck.git/commitdiff
usb: dwc3: ep0: fix 'transfered' typo
authorFelipe Balbi <balbi@ti.com>
Fri, 26 Aug 2011 23:30:33 +0000 (02:30 +0300)
committerFelipe Balbi <balbi@ti.com>
Fri, 9 Sep 2011 10:02:00 +0000 (13:02 +0300)
trivial patch. No functional changes.

Signed-off-by: Felipe Balbi <balbi@ti.com>
drivers/usb/dwc3/ep0.c

index 4698fe01376939275b71d5244912083ad4c66cfa..a6fc5c3167432c1982bfb214b52f8cc3cb80e261 100644 (file)
@@ -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 */