diff options
author | Robert Jarzmik <robert.jarzmik@free.fr> | 2008-10-13 14:06:00 -0400 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@suse.de> | 2008-10-22 13:05:28 -0400 |
commit | 3131f7b0ab9ed461daa2464fffd9df784d1f730d (patch) | |
tree | 174621c5fb081886f30fc69aa255b3cd63e0f4ca /drivers/usb | |
parent | dd9ebf1421902df806c0ed6fac296badaca06161 (diff) |
USB: Fix unneeded endpoint check in pxa27x_udc
The request allocation code doesn't need to check if the
endpoint is not NULL, as the only caller in
include/linux/usb/gadget.h, usb_ep_alloc_request() needs the
endpoint pointer to have a correct value to trigger the
allocation code.
Signed-off-by: Robert Jarzmik <robert.jarzmik@free.fr>
Acked-by: Alan Cox <alan@lxorguk.ukuu.org.uk>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Diffstat (limited to 'drivers/usb')
-rw-r--r-- | drivers/usb/gadget/pxa27x_udc.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/usb/gadget/pxa27x_udc.c b/drivers/usb/gadget/pxa27x_udc.c index bcf375ca3d7..caa37c95802 100644 --- a/drivers/usb/gadget/pxa27x_udc.c +++ b/drivers/usb/gadget/pxa27x_udc.c | |||
@@ -650,7 +650,7 @@ pxa_ep_alloc_request(struct usb_ep *_ep, gfp_t gfp_flags) | |||
650 | struct pxa27x_request *req; | 650 | struct pxa27x_request *req; |
651 | 651 | ||
652 | req = kzalloc(sizeof *req, gfp_flags); | 652 | req = kzalloc(sizeof *req, gfp_flags); |
653 | if (!req || !_ep) | 653 | if (!req) |
654 | return NULL; | 654 | return NULL; |
655 | 655 | ||
656 | INIT_LIST_HEAD(&req->queue); | 656 | INIT_LIST_HEAD(&req->queue); |