target: move the dereference below the NULL test
authorWei Yongjun <yongjun_wei@trendmicro.com.cn>
Fri, 7 Sep 2012 06:56:28 +0000 (14:56 +0800)
committerNicholas Bellinger <nab@linux-iscsi.org>
Tue, 18 Sep 2012 01:04:14 +0000 (18:04 -0700)
commit609234e3b6d69315b5cd511b66435d733204e779
tree71392235a49bd895f77ddef9ff268780309cd173
parent7875f179085608c659b676be74d33a2e515d8f43
target: 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: Nicholas Bellinger <nab@linux-iscsi.org>
drivers/target/target_core_pr.c