From 77ef7ede1642aa7ab030a66532ea43084bf95f68 Mon Sep 17 00:00:00 2001 From: Peter Krempa Date: Thu, 23 Nov 2023 16:59:50 +0100 Subject: [PATCH] storage_file_probe: Remove unused state 'BACKING_STORE_ERROR' MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit None of the backing store parser functions actually use it. Remove it to avoid confusion. Signed-off-by: Peter Krempa Reviewed-by: Ján Tomko --- src/storage_file/storage_file_probe.c | 4 ---- 1 file changed, 4 deletions(-) diff --git a/src/storage_file/storage_file_probe.c b/src/storage_file/storage_file_probe.c index 19f77086da..c73f533d2d 100644 --- a/src/storage_file/storage_file_probe.c +++ b/src/storage_file/storage_file_probe.c @@ -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);