]> git.karo-electronics.de Git - linux-beck.git/commitdiff
usb: dwc3: ep0: fix compile warning
authorFelipe Balbi <balbi@ti.com>
Tue, 10 Jan 2012 15:29:29 +0000 (17:29 +0200)
committerFelipe Balbi <balbi@ti.com>
Tue, 24 Jan 2012 13:42:25 +0000 (15:42 +0200)
commit 34c60a7 (usb: dwc3: ep0: tidy up Pending
Request handling) introduced a compile warning
by leaving an unused variable.

This patch fixes that warning:

drivers/usb/dwc3/ep0.c: In function ‘__dwc3_gadget_ep0_queue’:
drivers/usb/dwc3/ep0.c:129:8: warning: unused variable ‘type’
[-Wunused-variable]

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

index 74a3828cf950fc0c0db2148693a63913d132b220..c8df1dd967efe3e5160fbe8507a8b2bbff972aa5 100644 (file)
@@ -126,7 +126,6 @@ static int __dwc3_gadget_ep0_queue(struct dwc3_ep *dep,
                struct dwc3_request *req)
 {
        struct dwc3             *dwc = dep->dwc;
-       u32                     type;
        int                     ret = 0;
 
        req->request.actual     = 0;