Remove unused pointer startP (#4770)
Clang complains about startP pointer pointing to a member of a packed structure, resulting on in a unaligned pointered address. The compiler will optimise the pointer out anyway
This commit is contained in:
committed by
Bertrand Songis
parent
df0e306458
commit
7779bc51cd
@@ -137,9 +137,8 @@ void eepromCheck()
|
||||
#if defined(CPUARM)
|
||||
blocksCount = 0;
|
||||
#endif
|
||||
blkid_t *startP = (i==MAXFILES ? &eeFs.freeList : &eeFs.files[i].startBlk);
|
||||
blkid_t blk = (i==MAXFILES ? eeFs.freeList : eeFs.files[i].startBlk);
|
||||
blkid_t lastBlk = 0;
|
||||
blk = *startP;
|
||||
while (blk) {
|
||||
if (blk < FIRSTBLK || // bad blk index
|
||||
blk >= BLOCKS || // bad blk indexchan
|
||||
@@ -149,7 +148,6 @@ void eepromCheck()
|
||||
EeFsSetLink(lastBlk, 0);
|
||||
}
|
||||
else {
|
||||
*startP = 0; // interrupt chain at startpos
|
||||
EeFsFlush();
|
||||
}
|
||||
blk = 0; // abort
|
||||
|
||||
Reference in New Issue
Block a user