]> xenbits.xensource.com Git - libvirt.git/commitdiff
storage: eliminate unnecessary labels
authorLaine Stump <laine@redhat.com>
Fri, 3 Jul 2020 03:24:51 +0000 (23:24 -0400)
committerLaine Stump <laine@redhat.com>
Wed, 8 Jul 2020 20:36:16 +0000 (16:36 -0400)
Signed-off-by: Laine Stump <laine@redhat.com>
Reviewed-by: Ján Tomko <jtomko@redhat.com>
src/storage/storage_util.c

index 36b5b21a5b090e92d4b5e25aa414a29c0e31de1f..9f46ea764bc78fbfc3f350c69f0ce60b31f4b7d7 100644 (file)
@@ -749,7 +749,7 @@ storageBackendCreateQemuImgOpts(virStorageEncryptionInfoDefPtr encinfo,
                                _("lazy_refcounts not supported with compat"
                                  " level %s"),
                                info->compat);
-                goto error;
+                return -1;
             }
             virBufferAddLit(&buf, "lazy_refcounts,");
         }
@@ -759,9 +759,6 @@ storageBackendCreateQemuImgOpts(virStorageEncryptionInfoDefPtr encinfo,
 
     *opts = virBufferContentAndReset(&buf);
     return 0;
-
- error:
-    return -1;
 }