We reference the return value of cpu before checking whether it is NULL,
The checking code is after that which violates code style.
It makes no difference if the cpu is NULL, qemu process will terminate.
But one will be 'Segmentation fault' and the other will report a error
which is what we want.
Signed-off-by: zhanghailiang <email@example.com>
Reviewed-by: Bastian Koppelmann <firstname.lastname@example.org>
Signed-off-by: Michael Tokarev <email@example.com>