usb: gadget: omap_udc: kfree(NULL) is safe
authorFelipe Balbi <balbi@ti.com>
Tue, 29 May 2012 11:38:32 +0000 (14:38 +0300)
committerFelipe Balbi <balbi@ti.com>
Sun, 3 Jun 2012 20:11:34 +0000 (23:11 +0300)
commit23673d7d26d81bd17cde3ed74c57b3f39585325f
treee269bf56ca6bdd6a1e40ddba6ee42f70798e93b5
parent70617db7ad7395498e6bc54c634199bf895426c6
usb: gadget: omap_udc: kfree(NULL) is safe

we don't need to check for _req because
kfree(NULL) is safe. Also, if someone
actually passes a NULL pointer to be freed
by usb_ep_free_request(), he deserves any
issue he faces.

Signed-off-by: Felipe Balbi <balbi@ti.com>
drivers/usb/gadget/omap_udc.c