hw/arm/xlnx-zynqmp: Use &error_abort for programming errors
authorPhilippe Mathieu-Daudé <philmd@linaro.org>
Fri, 8 Nov 2024 15:24:50 +0000 (15:24 +0000)
committerPhilippe Mathieu-Daudé <philmd@linaro.org>
Sun, 16 Feb 2025 13:25:07 +0000 (14:25 +0100)
commit7f2626dc24198700683d264c265a2d337fff980b
tree761ed03b76c9b24988ce9725c47a3f6e01adf0a1
parent1e0d4eb4ee7c909323bffc39bc348eb3174b426b
hw/arm/xlnx-zynqmp: Use &error_abort for programming errors

When a property value is static (not provided by QMP or CLI),
error shouldn't happen, otherwise it is a programming error.
Therefore simplify and use &error_abort as this can't fail.

Reported-by: Richard Henderson <richard.henderson@linaro.org>
Signed-off-by: Philippe Mathieu-Daudé <philmd@linaro.org>
Reviewed-by: Anton Johansson <anjo@rev.ng>
Message-Id: <20241108154317.12129-11-philmd@linaro.org>
hw/arm/xlnx-zynqmp.c