[IA64] kexec: Move the dereference below the NULL test
authorWei Yongjun <yongjun_wei@trendmicro.com.cn>
Mon, 10 Sep 2012 04:49:57 +0000 (12:49 +0800)
committerTony Luck <tony.luck@intel.com>
Mon, 10 Sep 2012 21:31:23 +0000 (14:31 -0700)
commit36a45e741783629e2c9039da51b95f637d56f875
tree68d103b717f4d17a98e838822f08ca1d3c96133e
parent7cd10a60c3d0db95bc94073587725adc6c813cc3
[IA64] kexec: 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: Tony Luck <tony.luck@intel.com>
arch/ia64/kernel/machine_kexec.c