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)
committerMichael Ellerman <mpe@ellerman.id.au>
Wed, 3 Oct 2018 05:40:02 +0000 (15:40 +1000)
commitcd5ff94577e004e0a4457e70d0ef3a030f4010b8
tree968e90737f40eac4361feacf9ef74847cfa5a780
parent9258227e9dd1da8feddb07ad9702845546a581c9
powerpc/xive: Move a dereference below a NULL test

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>
arch/powerpc/sysdev/xive/common.c