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
HpmfwupgQuerySelftestResult() - kill one level of indentation.
This commit is contained in:
parent
f19ed0a90b
commit
60a3e63429
@ -2233,7 +2233,10 @@ HpmfwupgQuerySelftestResult(struct ipmi_intf *intf, struct HpmfwupgQuerySelftest
|
||||
} while (rsp
|
||||
&& (rsp->ccode == HPMFWUPG_COMMAND_IN_PROGRESS)
|
||||
&& (timeoutSec2 - timeoutSec1 < selfTestTimeout));
|
||||
if (rsp) {
|
||||
if (rsp == NULL) {
|
||||
lprintf(LOG_NOTICE, "Error getting upgrade status\n");
|
||||
return HPMFWUPG_ERROR;
|
||||
}
|
||||
if (rsp->ccode == 0x00) {
|
||||
memcpy(&pCtx->resp, rsp->data,
|
||||
sizeof(struct HpmfwupgQuerySelftestResultResp));
|
||||
@ -2251,10 +2254,6 @@ HpmfwupgQuerySelftestResult(struct ipmi_intf *intf, struct HpmfwupgQuerySelftest
|
||||
val2str(rsp->ccode, completion_code_vals));
|
||||
rc = HPMFWUPG_ERROR;
|
||||
}
|
||||
} else {
|
||||
lprintf(LOG_NOTICE, "Error getting upgrade status\n");
|
||||
rc = HPMFWUPG_ERROR;
|
||||
}
|
||||
return rc;
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user