alistair23-linux/drivers/usb/chipidea
Alexander Shishkin b7283d5a04 usb: chipidea: remove unneeded NULL check
As reported by Dan Carpenter, there is a NULL check in udc_start() that
follows a dereference of the pointer that's being checked. However, at
that point udc pointer shouldn't ever be NULL and if it is, the dereference
should cause an oops.

Signed-off-by: Alexander Shishkin <alexander.shishkin@linux.intel.com>
Reported-by: Dan Carpenter <dan.carpenter@oracle.com>
Acked-by: Felipe Balbi <balbi@ti.com>
Signed-off-by: Richard Zhao <richard.zhao@freescale.com>
Acked-by: Marek Vasut <marex@denx.de>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2012-07-06 10:58:38 -07:00
..
bits.h usb: chipidea: add host role 2012-05-11 16:56:15 -07:00
ci.h usb: chipidea: drop unused field "device" from ci13xxx_ep 2012-05-11 16:59:36 -07:00
ci13xxx_msm.c usb: chipidea: remove unused field "regs" from ci13xxx 2012-05-11 16:52:49 -07:00
ci13xxx_pci.c usb: chipidea: add power_budget limit for ehci to platform data 2012-05-11 16:59:35 -07:00
core.c usb: chipidea: remove zero check of hw_ep_max 2012-05-15 08:43:40 -07:00
debug.c usb: chipidea: split the driver code into units 2012-05-11 16:49:51 -07:00
debug.h usb: chipidea: split the driver code into units 2012-05-11 16:49:51 -07:00
host.c USB: CI13xxx: Use usb_put_hcd() on failure to drop HCD 2012-05-15 08:43:40 -07:00
host.h usb: chipidea: add host role 2012-05-11 16:56:15 -07:00
Kconfig usb: chipidea: add host role 2012-05-11 16:56:15 -07:00
Makefile usb: chipidea: add host role 2012-05-11 16:56:15 -07:00
udc.c usb: chipidea: remove unneeded NULL check 2012-07-06 10:58:38 -07:00
udc.h usb: chipidea: use generic map/unmap routines 2012-05-11 16:59:35 -07:00