powerpc/xive: Move a dereference below a NULL test
authorzhong jiang <zhongjiang@huawei.com>
Wed, 26 Sep 2018 12:09:32 +0000 (20:09 +0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sun, 24 Nov 2019 07:23:01 +0000 (08:23 +0100)
commit41a4901469907cc6b75b492152798077e3170e89
tree807ffd20600b1dbd40e611d03eb76a685a337222
parent5c07e4774cf83ae0ad403c3221d78110d4e7eaf8
powerpc/xive: Move a dereference below a NULL test

[ Upstream commit cd5ff94577e004e0a4457e70d0ef3a030f4010b8 ]

Move the dereference of xc below the NULL test.

Signed-off-by: zhong jiang <zhongjiang@huawei.com>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Signed-off-by: Sasha Levin <sashal@kernel.org>
arch/powerpc/sysdev/xive/common.c