diff options
author | 2012-06-29 17:48:49 +0800 | |
---|---|---|
committer | 2012-07-06 10:58:38 -0700 | |
commit | b7283d5a044c010d5e68afccc0598846f254db7b (patch) | |
tree | b6c77944d2d880bed6845e2f362c1f2c4a8857ce /include/linux/usb/chipidea.h | |
parent | usbdevfs: Use scatter-gather lists for large bulk transfers (diff) | |
download | linux-dev-b7283d5a044c010d5e68afccc0598846f254db7b.tar.xz linux-dev-b7283d5a044c010d5e68afccc0598846f254db7b.zip |
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>
Diffstat (limited to 'include/linux/usb/chipidea.h')
0 files changed, 0 insertions, 0 deletions