mirror of
https://github.com/ipmitool/ipmitool.git
synced 2025-05-10 10:37:22 +00:00
Remove dead code - rsp can't be NULL at this point - CID#1149005
This commit is contained in:
parent
9fc4a39fda
commit
8775af38f5
@ -837,11 +837,8 @@ KfwumFinishFirmwareImage(struct ipmi_intf *intf, tKFWUM_InFirmwareInfo firmInfo)
|
|||||||
do {
|
do {
|
||||||
rsp = intf->sendrecv(intf, &req);
|
rsp = intf->sendrecv(intf, &req);
|
||||||
} while (rsp == NULL || rsp->ccode == 0xc0);
|
} while (rsp == NULL || rsp->ccode == 0xc0);
|
||||||
if (!rsp) {
|
|
||||||
lprintf(LOG_ERR,
|
if (rsp->ccode != 0) {
|
||||||
"Error in FWUM Firmware Finish Firmware Image Download Command.");
|
|
||||||
return (-1);
|
|
||||||
} else if (rsp->ccode != 0) {
|
|
||||||
lprintf(LOG_ERR,
|
lprintf(LOG_ERR,
|
||||||
"FWUM Firmware Finish Firmware Image Download returned %x",
|
"FWUM Firmware Finish Firmware Image Download returned %x",
|
||||||
rsp->ccode);
|
rsp->ccode);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user