Re: [Qemu-devel] [PATCH] target-arm: Fix unreachable code in gicv3_class_name()

2016-07-11 Thread Shannon Zhao
On 2016/7/12 2:09, Peter Maydell wrote: > Coverity complains that the exit() in gicv3_class_name() > can be unreachable, because if TARGET_AARCH64 is defined > then all code paths return before reaching it. Move the > exit() up to the error_report() that it belongs with. > > Signed-off-by: Peter

[Qemu-devel] [PATCH] target-arm: Fix unreachable code in gicv3_class_name()

2016-07-11 Thread Peter Maydell
Coverity complains that the exit() in gicv3_class_name() can be unreachable, because if TARGET_AARCH64 is defined then all code paths return before reaching it. Move the exit() up to the error_report() that it belongs with. Signed-off-by: Peter Maydell --- target-arm/machine.c | 3 +-- 1 file ch