caif: move the dereference below the NULL test
authorWei Yongjun <yongjun_wei@trendmicro.com.cn>
Sun, 9 Sep 2012 18:38:27 +0000 (18:38 +0000)
committerDavid S. Miller <davem@davemloft.net>
Mon, 10 Sep 2012 20:13:31 +0000 (16:13 -0400)
commit566f26aa705609d05940289036ab914c8a3be707
treefd0e25a88a89efa8b881ee57efcd1c9d8b92881a
parent2120c52da6fe741454a60644018ad2a6abd957ac
caif: 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: David S. Miller <davem@davemloft.net>
net/caif/cfsrvl.c