Skip to content

Commit

Permalink
usb: gadget: remove unused variable in gr_queue_int()
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Wei Yongjun authored and gregkh committed Jan 8, 2014
1 parent 62e3986 commit d85b277
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions drivers/usb/gadget/gr_udc.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit d85b277

Please sign in to comment.