storage: Add coverity[dead_error_condition] to avoid error

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.
This commit is contained in:
John Ferlan authored and Michal Privoznik committed 2013-01-22 16:59:46 +01:00
1 parent 011d40059d
commit 5f579c0cda
1 file changed
+2
+2
View 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