ID: 28 - 'lib/ipmi_delloem.c' - clean up the code

Remove unnecessary if() from ipmi_print_power_cnsmpt_history().
This commit is contained in:
Zdenek Styblik 2013-07-07 11:43:10 +00:00
parent 630934cb89
commit 5819b314af

View File

@ -3398,7 +3398,9 @@ ipmi_print_power_consmpt_history(struct ipmi_intf * intf, int unit)
if (rc == (-1)) {
return rc;
}
if (rc == 0) {
if (rc != 0) {
return rc;
}
printf("Power Consumption History\n\n");
/* The fields are alligned manually changing the spaces will alter
* the alignment*/
@ -3495,7 +3497,6 @@ ipmi_print_power_consmpt_history(struct ipmi_intf * intf, int unit)
printf("Last Day : %s", timestr);
ipmi_time_to_str(lastweekpeakpower, timestr);
printf("Last Week : %s", timestr);
}
return rc;
}
/*