]> 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)
commit09bec26d540f92cd77bcb0901a076085a618191c
treefd0e25a88a89efa8b881ee57efcd1c9d8b92881a
parenta67368895856ed6aeb238c105a2581bdd433ed3e
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