staging: tidspbridge: move the dereference below the NULL test
authorWei Yongjun <yongjun_wei@trendmicro.com.cn>
Fri, 7 Sep 2012 06:59:15 +0000 (14:59 +0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sat, 8 Sep 2012 05:02:20 +0000 (22:02 -0700)
commite89a3370b0aaf197016eceefa2e710517c83e445
tree392759a6c064a07684f91462b6b891b3199ed120
parent5da80ee8d863c32719e3431054e26a0ef1a02a51
staging: tidspbridge: 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: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/tidspbridge/core/chnl_sm.c