X-Git-Url: https://repo.jachan.dev/qemu.git/blobdiff_plain/84c0781103dcbe9b5e5433ba16fbeb55d69d6cb7..fa3007e7ec3a1e19a85912482ded024f95b48dc8:/bootdevice.c diff --git a/bootdevice.c b/bootdevice.c index dbc0159392..33e3029e40 100644 --- a/bootdevice.c +++ b/bootdevice.c @@ -23,10 +23,12 @@ */ #include "qemu/osdep.h" +#include "qapi/error.h" #include "sysemu/sysemu.h" #include "qapi/visitor.h" #include "qemu/error-report.h" #include "hw/hw.h" +#include "hw/qdev-core.h" typedef struct FWBootEntry FWBootEntry; @@ -300,9 +302,7 @@ static void device_set_bootindex(Object *obj, Visitor *v, const char *name, add_boot_device_path(*prop->bootindex, prop->dev, prop->suffix); out: - if (local_err) { - error_propagate(errp, local_err); - } + error_propagate(errp, local_err); } static void property_release_bootindex(Object *obj, const char *name,