From: Laine Stump Date: Fri, 3 Jul 2020 03:24:51 +0000 (-0400) Subject: storage: eliminate unnecessary labels X-Git-Tag: v6.6.0-rc1~203 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=322727a4cbe4b4bec10db92fd6e7fcae452e3e95;p=thirdparty%2Flibvirt.git storage: eliminate unnecessary labels Signed-off-by: Laine Stump Reviewed-by: Ján Tomko --- 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; }