From 8775af38f5e3d81f2933a2fa738af89fb7f50aa5 Mon Sep 17 00:00:00 2001 From: Zdenek Styblik Date: Wed, 31 Dec 2014 05:53:24 +0100 Subject: [PATCH] Remove dead code - rsp can't be NULL at this point - CID#1149005 --- lib/ipmi_fwum.c | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/lib/ipmi_fwum.c b/lib/ipmi_fwum.c index f0d5bc1..066d929 100644 --- a/lib/ipmi_fwum.c +++ b/lib/ipmi_fwum.c @@ -837,11 +837,8 @@ KfwumFinishFirmwareImage(struct ipmi_intf *intf, tKFWUM_InFirmwareInfo firmInfo) do { rsp = intf->sendrecv(intf, &req); } while (rsp == NULL || rsp->ccode == 0xc0); - if (!rsp) { - lprintf(LOG_ERR, - "Error in FWUM Firmware Finish Firmware Image Download Command."); - return (-1); - } else if (rsp->ccode != 0) { + + if (rsp->ccode != 0) { lprintf(LOG_ERR, "FWUM Firmware Finish Firmware Image Download returned %x", rsp->ccode);