Remove dead code - rsp can't be NULL at this point - CID#1149005

This commit is contained in:
Zdenek Styblik 2014-12-31 05:53:24 +01:00
parent 9fc4a39fda
commit 8775af38f5

View File

@ -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);