]> xenbits.xensource.com Git - libvirt.git/commitdiff
storage: Add coverity[dead_error_condition] to avoid error
authorJohn Ferlan <jferlan@redhat.com>
Tue, 22 Jan 2013 14:41:04 +0000 (09:41 -0500)
committerMichal Privoznik <mprivozn@redhat.com>
Tue, 22 Jan 2013 15:59:46 +0000 (16:59 +0100)
The local redefinition of PED_PARTITION_PROTECTED results in the error
but is not a problem especially if the built code doesn't have the latest
definitions.

src/storage/parthelper.c

index 83f827985610826aaf32af8edd126b389c970d18..c4af48fcb952b4b6948394030caf5f43034f75f3 100644 (file)
@@ -129,6 +129,7 @@ int main(int argc, char **argv)
                 content = "free";
             else if (part->type & PED_PARTITION_METADATA)
                 content = "metadata";
+            /* coverity[dead_error_condition] - not true if defined */
             else if (part->type & PED_PARTITION_PROTECTED)
                 content = "protected";
             else
@@ -142,6 +143,7 @@ int main(int argc, char **argv)
                 content = "free";
             else if (part->type & PED_PARTITION_METADATA)
                 content = "metadata";
+            /* coverity[dead_error_condition] - not true if defined */
             else if (part->type & PED_PARTITION_PROTECTED)
                 content = "protected";
             else