tcm_fc: move the dereference below the NULL test
authorWei Yongjun <yongjun_wei@trendmicro.com.cn>
Fri, 7 Sep 2012 06:55:32 +0000 (14:55 +0800)
committerNicholas Bellinger <nab@linux-iscsi.org>
Tue, 18 Sep 2012 01:04:09 +0000 (18:04 -0700)
commit7875f179085608c659b676be74d33a2e515d8f43
tree163cadd0a5f103a0adcc6d1dcdc13658a0c8480e
parentd81cb44726f050d7cf1be4afd9cb45d153b52066
tcm_fc: 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/tcm_fc/tfc_io.c