ID: 50 - ipmi_hpmfwupg needs a clean up

HpmfwupgInitiateUpgradeAction() - kill unnecessary indent.
This commit is contained in:
Zdenek Styblik 2013-10-10 11:33:27 +00:00
parent 08f50ad301
commit 18aadc30d0

View File

@ -1833,7 +1833,10 @@ HpmfwupgInitiateUpgradeAction(struct ipmi_intf *intf,
req.msg.data = (unsigned char*)&pCtx->req; req.msg.data = (unsigned char*)&pCtx->req;
req.msg.data_len = sizeof(struct HpmfwupgInitiateUpgradeActionReq); req.msg.data_len = sizeof(struct HpmfwupgInitiateUpgradeActionReq);
rsp = HpmfwupgSendCmd(intf, req, pFwupgCtx); rsp = HpmfwupgSendCmd(intf, req, pFwupgCtx);
if (rsp) { if (rsp == NULL) {
lprintf(LOG_ERR, "Error initiating upgrade action.");
return HPMFWUPG_ERROR;
}
/* Long duration command handling */ /* Long duration command handling */
if (rsp->ccode == HPMFWUPG_COMMAND_IN_PROGRESS) { if (rsp->ccode == HPMFWUPG_COMMAND_IN_PROGRESS) {
rc = HpmfwupgWaitLongDurationCmd(intf, pFwupgCtx); rc = HpmfwupgWaitLongDurationCmd(intf, pFwupgCtx);
@ -1844,10 +1847,6 @@ HpmfwupgInitiateUpgradeAction(struct ipmi_intf *intf,
val2str(rsp->ccode, completion_code_vals)); val2str(rsp->ccode, completion_code_vals));
rc = HPMFWUPG_ERROR; rc = HPMFWUPG_ERROR;
} }
} else {
lprintf(LOG_NOTICE, "Error initiating upgrade action\n");
rc = HPMFWUPG_ERROR;
}
return rc; return rc;
} }