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
HpmfwupgAbortUpgrade() - simplify function.
This commit is contained in:
parent
b803224398
commit
08f50ad301
@ -1804,18 +1804,17 @@ HpmfwupgAbortUpgrade(struct ipmi_intf *intf,
|
||||
req.msg.data = (unsigned char*)&pCtx->req;
|
||||
req.msg.data_len = sizeof(struct HpmfwupgAbortUpgradeReq);
|
||||
rsp = HpmfwupgSendCmd(intf, req, NULL);
|
||||
if (rsp) {
|
||||
if (rsp == NULL) {
|
||||
lprintf(LOG_ERR, "Error - aborting upgrade.");
|
||||
return HPMFWUPG_ERROR;
|
||||
}
|
||||
if (rsp->ccode != 0x00) {
|
||||
lprintf(LOG_NOTICE,"Error aborting upgrade");
|
||||
lprintf(LOG_NOTICE, "compcode=0x%x: %s",
|
||||
lprintf(LOG_ERR, "Error aborting upgrade");
|
||||
lprintf(LOG_ERR, "compcode=0x%x: %s",
|
||||
rsp->ccode,
|
||||
val2str(rsp->ccode, completion_code_vals));
|
||||
rc = HPMFWUPG_ERROR;
|
||||
}
|
||||
} else {
|
||||
lprintf(LOG_NOTICE,"Error aborting upgrade\n");
|
||||
rc = HPMFWUPG_ERROR;
|
||||
}
|
||||
return rc;
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user