]> git.proxmox.com Git - mirror_qemu.git/blobdiff - bootdevice.c
qapi: Use returned bool to check for failure, manual part
[mirror_qemu.git] / bootdevice.c
index fb09d3c6680c09c0fda697c3ccd02d4797806cc6..769f40c77db0ec11e90ac8c776fb4b4d97feeeb9 100644 (file)
@@ -297,8 +297,8 @@ static void device_set_bootindex(Object *obj, Visitor *v, const char *name,
     int32_t boot_index;
     Error *local_err = NULL;
 
-    if (!visit_type_int32(v, name, &boot_index, &local_err)) {
-        goto out;
+    if (!visit_type_int32(v, name, &boot_index, errp)) {
+        return;
     }
     /* check whether bootindex is present in fw_boot_order list  */
     check_boot_index(boot_index, &local_err);