diff options
Diffstat (limited to 'src/plugins/ipmi_intf.c')
-rw-r--r-- | src/plugins/ipmi_intf.c | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/src/plugins/ipmi_intf.c b/src/plugins/ipmi_intf.c index ebe012a..f09c289 100644 --- a/src/plugins/ipmi_intf.c +++ b/src/plugins/ipmi_intf.c @@ -167,9 +167,8 @@ void ipmi_intf_print(struct ipmi_intf_support * intflist) if (intflist) { found = 0; for (sup=intflist; sup->name; sup++) { - if (strcmp(sup->name, (*intf)->name) == 0 && - strcmp(sup->name, (*intf)->name) == 0 && - sup->supported == 1) + if (!strcmp(sup->name, (*intf)->name) + && sup->supported) found = 1; } if (found == 0) @@ -211,7 +210,7 @@ struct ipmi_intf * ipmi_intf_load(char * name) intf++) { i = *intf; - if (strcmp(name, i->name) == 0) { + if (!strcmp(name, i->name)) { if (i->setup && (i->setup(i) < 0)) { lprintf(LOG_ERR, "Unable to setup " "interface %s", name); |