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;
/* Validate action record checksum */
rc = HpmfwupgValidateActionRecordChecksum(pActionRecord);
if (rc == HPMFWUPG_SUCCESS) {
if (rc != HPMFWUPG_SUCCESS) {
continue;
}
switch(pActionRecord->actionType) {
case HPMFWUPG_ACTION_BACKUP_COMPONENTS:
{
@ -1190,7 +1192,6 @@ HpmfwupgUpgradeStage(struct ipmi_intf *intf,
break;
}
}
}
HpmDisplayLine("-", 79);
fflush(stdout);
lprintf(LOG_NOTICE, "(*) Component requires Payload Cold Reset");