mirror of
https://github.com/ipmitool/ipmitool.git
synced 2026-07-03 18:51:42 +00:00
ID:355 - Remove declared, but not used variables
Commit removes bunch of declared, but not used, variables.
This commit is contained in:
@@ -300,7 +300,6 @@ HpmfwupgTargetCheck(struct ipmi_intf *intf, int option)
|
||||
struct HpmfwupgGetTargetUpgCapabilitiesCtx targetCapCmd;
|
||||
int rc = HPMFWUPG_SUCCESS;
|
||||
int componentId = 0;
|
||||
int flagColdReset = FALSE;
|
||||
struct ipm_devid_rsp devIdrsp;
|
||||
struct HpmfwupgGetComponentPropertiesCtx getCompProp;
|
||||
int mode = 0;
|
||||
@@ -437,13 +436,6 @@ HpmfwupgTargetCheck(struct ipmi_intf *intf, int option)
|
||||
gVersionInfo[componentId].deferredAux[2] = 0xff;
|
||||
gVersionInfo[componentId].deferredAux[3] = 0xff;
|
||||
}
|
||||
if (gVersionInfo[componentId].coldResetRequired) {
|
||||
/*
|
||||
* If any of the component indicates that the Payload Cold reset is required
|
||||
* then set the flag
|
||||
*/
|
||||
flagColdReset = TRUE;
|
||||
}
|
||||
if (option & VIEW_MODE) {
|
||||
HpmDisplayVersion(mode,
|
||||
&gVersionInfo[componentId],
|
||||
@@ -1002,14 +994,11 @@ HpmfwupgUpgradeStage(struct ipmi_intf *intf,
|
||||
struct HpmfwupgActionRecord* pActionRecord;
|
||||
int rc = HPMFWUPG_SUCCESS;
|
||||
unsigned char *pImagePtr;
|
||||
unsigned int actionsSize;
|
||||
int flagColdReset = FALSE;
|
||||
/* Put pointer after image header */
|
||||
pImagePtr = (unsigned char*)
|
||||
(pFwupgCtx->pImageData + sizeof(struct HpmfwupgImageHeader) +
|
||||
pImageHeader->oemDataLength + sizeof(unsigned char)/*checksum*/);
|
||||
/* Deternime actions size */
|
||||
actionsSize = pFwupgCtx->imageSize - sizeof(struct HpmfwupgImageHeader);
|
||||
if (!(option & VIEW_MODE)) {
|
||||
HpmDisplayUpgradeHeader();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user