]> git.baikalelectronics.ru Git - kernel.git/commit
usb: gadget: at91_udc: move the dereference below the NULL test
authorWei Yongjun <yongjun_wei@trendmicro.com.cn>
Fri, 7 Sep 2012 06:54:25 +0000 (14:54 +0800)
committerFelipe Balbi <balbi@ti.com>
Mon, 10 Sep 2012 13:19:47 +0000 (16:19 +0300)
commitc93a6e87e617dd6c1bef3291456b6bc0530f8d09
treeef048bd3f830c5234c2a36b4c4d7fa18fe11034e
parentdab04e2719cd066e500e681e98edf4a48bc1c58e
usb: gadget: at91_udc: move the dereference below the NULL test

The dereference should be moved below the NULL test.

spatch with a semantic match is used to found this.
(http://coccinelle.lip6.fr/)

Signed-off-by: Wei Yongjun <yongjun_wei@trendmicro.com.cn>
Signed-off-by: Felipe Balbi <balbi@ti.com>
drivers/usb/gadget/at91_udc.c