commit | 005a64307d5d3ef895e7821df4cad7739bab392e | [log] [tgz] |
---|---|---|
author | Peter Chen <peter.chen@freescale.com> | Wed Mar 11 10:07:47 2015 +0800 |
committer | Felipe Balbi <balbi@ti.com> | Wed Mar 11 14:59:10 2015 -0500 |
tree | ecb7e5d25e488216143d204795927ddb6a327515 | |
parent | 72a472d2f912292457d6e3579df342c1138f26d5 [diff] |
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 <tapaswenipathak@gmail.com> Reported-by : Julia Lawall <julia.lawall@lip6.fr> Signed-off-by: Peter Chen <peter.chen@freescale.com> Signed-off-by: Felipe Balbi <balbi@ti.com>