mirror of
https://github.com/ipmitool/ipmitool.git
synced 2025-05-10 10:37:22 +00:00
ID: 28 - 'lib/ipmi_delloem.c' - clean up the code
Remove unnecessary if() from ipmi_print_power_cnsmpt_history().
This commit is contained in:
parent
630934cb89
commit
5819b314af
@ -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;
|
||||
}
|
||||
/*
|
||||
|
Loading…
x
Reference in New Issue
Block a user