From: Dan Carpenter Date: Wed, 4 Jan 2012 07:20:09 +0000 (+0300) Subject: usb: gadget: mv_udc: remove unneeded NULL check X-Git-Tag: v3.4-rc1~184^2~22^2~39^2~47 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=10800f2ca1a78e24cf92dc5e16a68a9b78f91bbe;p=profile%2Fivi%2Fkernel-x86-ivi.git usb: gadget: mv_udc: remove unneeded NULL check We've dereferenced req already, and we checked for bogus parameters at the start of the function. Signed-off-by: Dan Carpenter Signed-off-by: Felipe Balbi --- diff --git a/drivers/usb/gadget/mv_udc_core.c b/drivers/usb/gadget/mv_udc_core.c index f97e737..8dd398b 100644 --- a/drivers/usb/gadget/mv_udc_core.c +++ b/drivers/usb/gadget/mv_udc_core.c @@ -771,8 +771,7 @@ mv_ep_queue(struct usb_ep *_ep, struct usb_request *_req, gfp_t gfp_flags) udc->ep0_state = DATA_STATE_XMIT; /* irq handler advances the queue */ - if (req != NULL) - list_add_tail(&req->queue, &ep->queue); + list_add_tail(&req->queue, &ep->queue); spin_unlock_irqrestore(&udc->lock, flags); return 0;