usb: otg: move the dereference below the NULL test
authorWei Yongjun <yongjun_wei@trendmicro.com.cn>
Mon, 10 Sep 2012 04:42:31 +0000 (12:42 +0800)
committerFelipe Balbi <balbi@ti.com>
Mon, 10 Sep 2012 16:26:14 +0000 (19:26 +0300)
commit58add6ca84c4815feef45008c41274b6df41ede8
treea8704503fdfe11b1808faff89c7c89e0c7bdf7eb
parentc9e4412ab8eb8ef82d645d8749c4ce96ad490007
usb: otg: 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/otg/fsl_otg.c