_ep to ep is a pointer substraction so ep won't be zero unless _ep was
8. This was not intendent by the author, it was probably a typo while
checking for NULL of the argument.
Signed-off-by: Sebastian Andrzej Siewior <bigeasy@linutronix.de>
Acked-by: Alan Stern <stern@rowland.harvard.edu>
Signed-off-by: Felipe Balbi <balbi@ti.com>
struct dummy_ep *ep;
struct dummy_request *req;
+ if (!_ep || !_req)
+ return;
ep = usb_ep_to_dummy_ep(_ep);
- if (!ep || !_req || (!ep->desc && _ep->name != ep0name))
+ if (!ep->desc && _ep->name != ep0name)
return;
req = usb_request_to_dummy_request(_req);