aboutsummaryrefslogtreecommitdiff
path: root/blockjob.c
diff options
context:
space:
mode:
authorzhanghailiang <zhang.zhanghailiang@huawei.com>2014-10-30 10:03:28 +0800
committerMichael Tokarev <mjt@tls.msk.ru>2014-11-02 10:04:34 +0300
commit8ef2b256b94696a3a4bd8aa69a2b0fd7bc246f07 (patch)
tree57fac7b02fdbb2a6d7095eb8bc3b9d05c598e5b6 /blockjob.c
parent44d8d2b2ddbaa3ee4125ec6cb2e8691e6348b01e (diff)
downloadqemu-8ef2b256b94696a3a4bd8aa69a2b0fd7bc246f07.zip
qemu-8ef2b256b94696a3a4bd8aa69a2b0fd7bc246f07.tar.gz
qemu-8ef2b256b94696a3a4bd8aa69a2b0fd7bc246f07.tar.bz2
target-tricore: check return value before using it
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 <zhang.zhanghailiang@huawei.com> Reviewed-by: Bastian Koppelmann <kbastian@mail.uni-paderborn.de> Signed-off-by: Michael Tokarev <mjt@tls.msk.ru>
Diffstat (limited to 'blockjob.c')
0 files changed, 0 insertions, 0 deletions