[PATCH 9/9] storage: Add coverity[dead_error_condition] to avoid error

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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 | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/src/storage/parthelper.c b/src/storage/parthelper.c
index 83f8279..c4af48f 100644
--- a/src/storage/parthelper.c
+++ b/src/storage/parthelper.c
@@ -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
-- 
1.7.11.7

--
libvir-list mailing list
libvir-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/libvir-list


[Index of Archives]     [Virt Tools]     [Libvirt Users]     [Lib OS Info]     [Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [KDE Users]     [Fedora Tools]