mirror of
https://github.com/ipmitool/ipmitool.git
synced 2025-05-10 18:47:22 +00:00
fru: delete unused variable matchInstance
Delete unused variable matchInstance. The variable is repeatedly assigned, but nothing reads it. Signed-off-by: Patrick Venture <venture@google.com>
This commit is contained in:
parent
92ee477cde
commit
715c7b8a1f
@ -1655,7 +1655,6 @@ static void ipmi_fru_oemkontron_get(int argc,
|
|||||||
uint8_t blockCount;
|
uint8_t blockCount;
|
||||||
uint8_t blockIndex = 0;
|
uint8_t blockIndex = 0;
|
||||||
|
|
||||||
unsigned int matchInstance = 0;
|
|
||||||
uint8_t instance = 0;
|
uint8_t instance = 0;
|
||||||
|
|
||||||
if (str2uchar(argv[OEM_KONTRON_INSTANCE_ARG_POS], &instance) != 0) {
|
if (str2uchar(argv[OEM_KONTRON_INSTANCE_ARG_POS], &instance) != 0) {
|
||||||
@ -1698,7 +1697,6 @@ static void ipmi_fru_oemkontron_get(int argc,
|
|||||||
OEM_KONTRON_FIELD_SIZE,
|
OEM_KONTRON_FIELD_SIZE,
|
||||||
OEM_KONTRON_FIELD_SIZE,
|
OEM_KONTRON_FIELD_SIZE,
|
||||||
((tOemKontronInformationRecordV0 *)pRecordData)->crc32);
|
((tOemKontronInformationRecordV0 *)pRecordData)->crc32);
|
||||||
matchInstance++;
|
|
||||||
offset += sizeof(tOemKontronInformationRecordV0);
|
offset += sizeof(tOemKontronInformationRecordV0);
|
||||||
offset++;
|
offset++;
|
||||||
} else if (version == 1) {
|
} else if (version == 1) {
|
||||||
@ -1718,7 +1716,6 @@ static void ipmi_fru_oemkontron_get(int argc,
|
|||||||
OEM_KONTRON_FIELD_SIZE,
|
OEM_KONTRON_FIELD_SIZE,
|
||||||
OEM_KONTRON_FIELD_SIZE,
|
OEM_KONTRON_FIELD_SIZE,
|
||||||
((tOemKontronInformationRecordV1 *)pRecordData)->crc32);
|
((tOemKontronInformationRecordV1 *)pRecordData)->crc32);
|
||||||
matchInstance++;
|
|
||||||
offset += sizeof(tOemKontronInformationRecordV1);
|
offset += sizeof(tOemKontronInformationRecordV1);
|
||||||
offset++;
|
offset++;
|
||||||
} else {
|
} else {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user