]> git.proxmox.com Git - mirror_qemu.git/commit
hw/intc/arm_gicv3_its: Avoid nested ifs in get_ite()
authorPeter Maydell <peter.maydell@linaro.org>
Tue, 1 Feb 2022 19:32:01 +0000 (19:32 +0000)
committerPeter Maydell <peter.maydell@linaro.org>
Tue, 8 Feb 2022 10:56:29 +0000 (10:56 +0000)
commit2954b93fe6e6173afbda124469af31c58e266ca1
treedf112566fa7cfb6e87bb4e613bae9664432b6679
parenta1ce993da6fc27b022075b02a2e1e1e5be329254
hw/intc/arm_gicv3_its: Avoid nested ifs in get_ite()

The get_ite() code has some awkward nested if statements; clean
them up by returning early if the memory accesses fail.

Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
Reviewed-by: Richard Henderson <richard.henderson@linaro.org>
Message-id: 20220201193207.2771604-8-peter.maydell@linaro.org
hw/intc/arm_gicv3_its.c