hw/intc/apic: Use ERRP_GUARD() in apic_common_realize()
authorPhilippe Mathieu-Daudé <philmd@linaro.org>
Tue, 3 Oct 2023 07:58:14 +0000 (09:58 +0200)
committerPhilippe Mathieu-Daudé <philmd@linaro.org>
Fri, 20 Oct 2023 12:46:07 +0000 (14:46 +0200)
commit705000674b9df27cc80328e83d3825dc5ee3d6d6
tree7149e5f7b72bc9997b635661758f07a70514752e
parentea08e72eb0288c40816c4b3a14688345d2eb0707
hw/intc/apic: Use ERRP_GUARD() in apic_common_realize()

APICCommonClass::realize() is a DeviceRealize() handler which
take an Error** parameter and can fail. Do not proceed further
on failure.

Signed-off-by: Philippe Mathieu-Daudé <philmd@linaro.org>
Reviewed-by: Peter Xu <peterx@redhat.com>
Message-Id: <20231003082728.83496-2-philmd@linaro.org>
hw/intc/apic_common.c