mirror of
https://github.com/ipmitool/ipmitool.git
synced 2025-05-10 18:47:22 +00:00
ID: 50 - ipmi_hpmfwupg needs a clean up
HpmfwupgUpgradeStage() - kill one level of indentation by changing one if().
This commit is contained in:
parent
7a0b451fd7
commit
f19ed0a90b
@ -1137,7 +1137,9 @@ HpmfwupgUpgradeStage(struct ipmi_intf *intf,
|
|||||||
pActionRecord = (struct HpmfwupgActionRecord*)pImagePtr;
|
pActionRecord = (struct HpmfwupgActionRecord*)pImagePtr;
|
||||||
/* Validate action record checksum */
|
/* Validate action record checksum */
|
||||||
rc = HpmfwupgValidateActionRecordChecksum(pActionRecord);
|
rc = HpmfwupgValidateActionRecordChecksum(pActionRecord);
|
||||||
if (rc == HPMFWUPG_SUCCESS) {
|
if (rc != HPMFWUPG_SUCCESS) {
|
||||||
|
continue;
|
||||||
|
}
|
||||||
switch(pActionRecord->actionType) {
|
switch(pActionRecord->actionType) {
|
||||||
case HPMFWUPG_ACTION_BACKUP_COMPONENTS:
|
case HPMFWUPG_ACTION_BACKUP_COMPONENTS:
|
||||||
{
|
{
|
||||||
@ -1190,7 +1192,6 @@ HpmfwupgUpgradeStage(struct ipmi_intf *intf,
|
|||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
|
||||||
HpmDisplayLine("-", 79);
|
HpmDisplayLine("-", 79);
|
||||||
fflush(stdout);
|
fflush(stdout);
|
||||||
lprintf(LOG_NOTICE, "(*) Component requires Payload Cold Reset");
|
lprintf(LOG_NOTICE, "(*) Component requires Payload Cold Reset");
|
||||||
|
Loading…
x
Reference in New Issue
Block a user