diff options
author | Peter Maydell | 2022-01-11 18:10:42 +0100 |
---|---|---|
committer | Peter Maydell | 2022-01-20 17:04:58 +0100 |
commit | be0ed8fb7fd4df3f6e09bb33c619e62a80410380 (patch) | |
tree | 2995a62534332e378c6180101d12945f3804f3ea /hw/pci-host | |
parent | hw/intc/arm_gicv3_its: Fix return codes in process_its_cmd() (diff) | |
download | qemu-be0ed8fb7fd4df3f6e09bb33c619e62a80410380.tar.gz qemu-be0ed8fb7fd4df3f6e09bb33c619e62a80410380.tar.xz qemu-be0ed8fb7fd4df3f6e09bb33c619e62a80410380.zip |
hw/intc/arm_gicv3_its: Refactor process_its_cmd() to reduce nesting
Refactor process_its_cmd() so that it consistently uses
the structure
do thing;
if (error condition) {
return early;
}
do next thing;
rather than doing some of the work nested inside if (not error)
code blocks.
Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
Reviewed-by: Alex Bennée <alex.bennee@linaro.org>
Reviewed-by: Richard Henderson <richard.henderson@linaro.org>
Message-id: 20220111171048.3545974-8-peter.maydell@linaro.org
Diffstat (limited to 'hw/pci-host')
0 files changed, 0 insertions, 0 deletions