mirror of
https://github.com/ipmitool/ipmitool.git
synced 2025-05-10 10:37:22 +00:00
ID: 50 - ipmi_hpmfwupg needs a clean up
Add missing ``rsp == NULL'' comp.
This commit is contained in:
parent
f56cea1253
commit
a8119d13a8
@ -2157,7 +2157,7 @@ HpmfwupgQueryRollbackStatus(struct ipmi_intf *intf,
|
|||||||
&& ((rsp->ccode == HPMFWUPG_COMMAND_IN_PROGRESS)
|
&& ((rsp->ccode == HPMFWUPG_COMMAND_IN_PROGRESS)
|
||||||
|| (rsp->ccode == IPMI_CC_TIMEOUT))
|
|| (rsp->ccode == IPMI_CC_TIMEOUT))
|
||||||
&& (timeoutSec2 - timeoutSec1 < rollbackTimeout));
|
&& (timeoutSec2 - timeoutSec1 < rollbackTimeout));
|
||||||
if (rsp) {
|
if (rsp == NULL) {
|
||||||
lprintf(LOG_ERR, "Error getting upgrade status.");
|
lprintf(LOG_ERR, "Error getting upgrade status.");
|
||||||
return HPMFWUPG_ERROR;
|
return HPMFWUPG_ERROR;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user