]> git.ipfire.org Git - thirdparty/libvirt.git/commitdiff
Get rid of useless VIR_STORAGE_FILE_FEATURE_NONE
authorJán Tomko <jtomko@redhat.com>
Mon, 24 Jun 2013 06:35:59 +0000 (08:35 +0200)
committerJán Tomko <jtomko@redhat.com>
Mon, 24 Jun 2013 06:44:46 +0000 (08:44 +0200)
It's not used anywhere except for the switch in
virStorageBackendCreateQemuImgOpts, where leaving it in causes
a dead code coverity warning and omitting it breaks compilation
because of unhandled enum value.

Introduced by 6298f74.

src/storage/storage_backend.c
src/util/virstoragefile.h

index 27a0a4f7116a99f2a277305608f99f94e2716e58..ae25c8974c61160d7f5015eb79099e1b8aab6a0e 100644 (file)
@@ -666,7 +666,7 @@ virStorageBackendCreateQemuImgOpts(char **opts,
                         goto error;
                     }
                     break;
-                case VIR_STORAGE_FILE_FEATURE_NONE:
+
                 case VIR_STORAGE_FILE_FEATURE_LAST:
                     ;
                 }
index a848fd04b049a5cbefa7a8f92256059fa7818dee..4cb47e62404f3eea9187c57a8dbd78bd9f3b8f85 100644 (file)
@@ -53,8 +53,7 @@ enum virStorageFileFormat {
 VIR_ENUM_DECL(virStorageFileFormat);
 
 enum virStorageFileFeature {
-    VIR_STORAGE_FILE_FEATURE_NONE = -1,
-    VIR_STORAGE_FILE_FEATURE_LAZY_REFCOUNTS,
+    VIR_STORAGE_FILE_FEATURE_LAZY_REFCOUNTS = 0,
 
     VIR_STORAGE_FILE_FEATURE_LAST
 };