Skip to contentSkip to conversation

libelf: "required" features should also be reported as "supported"

PATCH New Jan Beulich 1 participant 1 message Jul 5, 2011

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 libelf: "required" features should also be reported as "supported"

xen/common/libelf/libelf-dominfo.c +3 -2
@@ -64,13 +64,14 @@ int elf_xen_parse_features(const char *f
         {
             if ( !elf_xen_feature_names[i] )
                 continue;
-            if ( (required != NULL) && (feature[0] == '!') )
+            if ( feature[0] == '!' )
             {
                 /* required */
                 if ( !strcmp(feature + 1, elf_xen_feature_names[i]) )
                 {
                     elf_xen_feature_set(i, supported);
-                    elf_xen_feature_set(i, required);
+                    if ( required )
+                        elf_xen_feature_set(i, required);
                     break;
                 }
             }
xen/common/libelf/libelf-dominfo.c +3 -2
@@ -64,13 +64,14 @@ int elf_xen_parse_features(const char *f
         {
             if ( !elf_xen_feature_names[i] )
                 continue;
-            if ( (required != NULL) && (feature[0] == '!') )
+            if ( feature[0] == '!' )
             {
                 /* required */
                 if ( !strcmp(feature + 1, elf_xen_feature_names[i]) )
                 {
                     elf_xen_feature_set(i, supported);
-                    elf_xen_feature_set(i, required);
+                    if ( required )
+                        elf_xen_feature_set(i, required);
                     break;
                 }
             }

_______________________________________________
Xen-devel mailing list
[email protected]
http://lists.xensource.com/xen-devel