MemoryCardFolder: Cleanup variable scope.

Codacy.
This commit is contained in:
lightningterror 2022-06-24 17:56:50 +02:00
parent dd6f9c5ad3
commit f99106ccb1
1 changed files with 2 additions and 4 deletions

View File

@ -1936,13 +1936,11 @@ void FolderMemoryCard::CalculateECC(u8* ecc, const u8* data)
0xc3, 0x44, 0x55, 0xd2, 0x66, 0xe1, 0xf0, 0x77, 0x77, 0xf0, 0xe1, 0x66, 0xd2, 0x55, 0x44, 0xc3,
0x00, 0x87, 0x96, 0x11, 0xa5, 0x22, 0x33, 0xb4, 0xb4, 0x33, 0x22, 0xa5, 0x11, 0x96, 0x87, 0x00};
int i, c;
ecc[0] = ecc[1] = ecc[2] = 0;
for (i = 0; i < 0x80; i++)
for (int i = 0; i < 0x80; i++)
{
c = Table[data[i]];
const int c = Table[data[i]];
ecc[0] ^= c;
if (c & 0x80)