[PATCH 30/32] storage: eliminate unnecessary labels

Laine Stump laine at redhat.com
Mon Jul 6 03:41:25 UTC 2020


Signed-off-by: Laine Stump <laine at redhat.com>
---
 src/storage/storage_util.c | 5 +----
 1 file changed, 1 insertion(+), 4 deletions(-)

diff --git a/src/storage/storage_util.c b/src/storage/storage_util.c
index 36b5b21a5b..9f46ea764b 100644
--- a/src/storage/storage_util.c
+++ b/src/storage/storage_util.c
@@ -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;
 }
 
 
-- 
2.25.4




More information about the libvir-list mailing list