usb: gadget: remove unused variable in gr_queue_int()
authorWei Yongjun <yongjun_wei@trendmicro.com.cn>
Tue, 7 Jan 2014 13:40:45 +0000 (21:40 +0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 8 Jan 2014 00:30:25 +0000 (16:30 -0800)
The variable 'dev' is initialized but never used
otherwise, so remove the unused variable.

Signed-off-by: Wei Yongjun <yongjun_wei@trendmicro.com.cn>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/usb/gadget/gr_udc.c

index 5f9c65959dd2ed623dcfca0fdfc4ec2061b53ddc..483d5a8219338aa7b55a0191505fc235f71b2f4f 100644 (file)
@@ -663,9 +663,6 @@ static inline int gr_queue_int(struct gr_ep *ep, struct gr_request *req,
 static void gr_ep_nuke(struct gr_ep *ep)
 {
        struct gr_request *req;
-       struct gr_udc *dev;
-
-       dev = ep->dev;
 
        ep->stopped = 1;
        ep->dma_start = 0;