From: Peter Chen Date: Wed, 11 Mar 2015 02:07:47 +0000 (+0800) Subject: usb: gadget: lpc32xxx_udc: Fix NULL dereference X-Git-Tag: omap-for-v4.2/o2_dc~157^2~55^2~25 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=005a64307d5d3ef895e7821df4cad7739bab392e;p=pandora-kernel.git usb: gadget: lpc32xxx_udc: Fix NULL dereference udc is then checked for NULL, if NULL, it is then dereferenced as udc->dev, it is found using Coccinelle. We simplify the code to fix this problem, and we delete some conditions at if {} which will never be met. Reported-by: Tapasweni Pathak Reported-by : Julia Lawall Signed-off-by: Peter Chen Signed-off-by: Felipe Balbi --- Reading git-diff-tree failed