X-Git-Url: https://git.proxmox.com/?a=blobdiff_plain;f=bootdevice.c;h=33e3029e40f4017ea6c548fd0d119cc89e497b5e;hb=eb87203b646c27938ecb11d7766c5c98f836241f;hp=bb9c08e5357341bc96f87950d3df1c22d5a93ff8;hpb=6bd8ab6889f45a42d69a3a65a4d6e7fc2453c84c;p=mirror_qemu.git diff --git a/bootdevice.c b/bootdevice.c index bb9c08e535..33e3029e40 100644 --- a/bootdevice.c +++ b/bootdevice.c @@ -302,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,