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
HpmfwupgInitiateUpgradeAction() - kill unnecessary indent.
This commit is contained in:
parent
08f50ad301
commit
18aadc30d0
@ -1833,19 +1833,18 @@ 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) {
|
||||||
/* Long duration command handling */
|
lprintf(LOG_ERR, "Error initiating upgrade action.");
|
||||||
if (rsp->ccode == HPMFWUPG_COMMAND_IN_PROGRESS) {
|
return HPMFWUPG_ERROR;
|
||||||
rc = HpmfwupgWaitLongDurationCmd(intf, pFwupgCtx);
|
}
|
||||||
} else if (rsp->ccode != 0x00) {
|
/* Long duration command handling */
|
||||||
lprintf(LOG_NOTICE,"Error initiating upgrade action");
|
if (rsp->ccode == HPMFWUPG_COMMAND_IN_PROGRESS) {
|
||||||
lprintf(LOG_NOTICE, "compcode=0x%x: %s",
|
rc = HpmfwupgWaitLongDurationCmd(intf, pFwupgCtx);
|
||||||
rsp->ccode,
|
} else if (rsp->ccode != 0x00) {
|
||||||
val2str(rsp->ccode, completion_code_vals));
|
lprintf(LOG_NOTICE,"Error initiating upgrade action");
|
||||||
rc = HPMFWUPG_ERROR;
|
lprintf(LOG_NOTICE, "compcode=0x%x: %s",
|
||||||
}
|
rsp->ccode,
|
||||||
} else {
|
val2str(rsp->ccode, completion_code_vals));
|
||||||
lprintf(LOG_NOTICE, "Error initiating upgrade action\n");
|
|
||||||
rc = HPMFWUPG_ERROR;
|
rc = HPMFWUPG_ERROR;
|
||||||
}
|
}
|
||||||
return rc;
|
return rc;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user