]> git.ipfire.org Git - thirdparty/libvirt.git/commitdiff
storage_file_probe: Remove unused state 'BACKING_STORE_ERROR'
authorPeter Krempa <pkrempa@redhat.com>
Thu, 23 Nov 2023 15:59:50 +0000 (16:59 +0100)
committerPeter Krempa <pkrempa@redhat.com>
Mon, 27 Nov 2023 09:12:34 +0000 (10:12 +0100)
None of the backing store parser functions actually use it. Remove it to
avoid confusion.

Signed-off-by: Peter Krempa <pkrempa@redhat.com>
Reviewed-by: Ján Tomko <jtomko@redhat.com>
src/storage_file/storage_file_probe.c

index 19f77086da66d0fb85665327c8daa93b78ebb04c..c73f533d2da6fe78363fc3ab46fbd3a0ca773e99 100644 (file)
@@ -46,7 +46,6 @@ enum lv_endian {
 enum {
     BACKING_STORE_OK,
     BACKING_STORE_INVALID,
-    BACKING_STORE_ERROR,
 };
 
 #define FILE_TYPE_VERSIONS_LAST 3
@@ -963,9 +962,6 @@ virStorageFileProbeGetMetadata(virStorageSource *meta,
 
         if (store == BACKING_STORE_INVALID)
             return 0;
-
-        if (store == BACKING_STORE_ERROR)
-            return -1;
     }
 
     g_clear_pointer(&meta->features, virBitmapFree);