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:
Patrick Venture 2018-11-26 18:50:36 -08:00 committed by Alexander Amelkin
parent 92ee477cde
commit 715c7b8a1f

View File

@ -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 {