]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit478393318b514c85260d611b281a2ea3b0156cd3
treefd0e25a88a89efa8b881ee57efcd1c9d8b92881a
parent2ad848f0c1a953b4339fa245a1692946c670fff4
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