ID: 50 - ipmi_hpmfwupg needs a clean up

HpmfwupgUpgradeStage() - kill one level of indentation by changing one if().
This commit is contained in:
Zdenek Styblik 2013-10-10 12:26:46 +00:00
parent 7a0b451fd7
commit f19ed0a90b

View File

@ -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");