diff options
author | Jan Beulich <jbeulich@novell.com> | 2011-07-08 08:35:00 +0100 |
---|---|---|
committer | Jan Beulich <jbeulich@novell.com> | 2011-07-08 08:35:00 +0100 |
commit | 56a86d9c66c355da0433b86fe893b06d9829ac0c (patch) | |
tree | 9df3e54c0818fc91ec45de3c972968cd34b96a9a /xen/common/libelf | |
parent | fe15cd0fb6d1622dbd04c2c227a368593c23b9af (diff) | |
download | xen-56a86d9c66c355da0433b86fe893b06d9829ac0c.tar.gz xen-56a86d9c66c355da0433b86fe893b06d9829ac0c.tar.bz2 xen-56a86d9c66c355da0433b86fe893b06d9829ac0c.zip |
libelf: "required" features should also be reported as "supported"
Signed-off-by: Jan Beulich <jbeulich@novell.com>
Diffstat (limited to 'xen/common/libelf')
-rw-r--r-- | xen/common/libelf/libelf-dominfo.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/xen/common/libelf/libelf-dominfo.c b/xen/common/libelf/libelf-dominfo.c index 5f48d3fea3..67ec1468ab 100644 --- a/xen/common/libelf/libelf-dominfo.c +++ b/xen/common/libelf/libelf-dominfo.c @@ -64,13 +64,14 @@ int elf_xen_parse_features(const char *features, { 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; } } |