1
0
Fork 0
forked from len0rd/rockbox

ata: Fix yellow in some bootloaders, introduced in c61ad40812

Change-Id: I0058fd5339e27505b6f8e4533fda07a1352a5329
This commit is contained in:
Solomon Peachy 2024-11-09 18:06:30 -05:00
parent c8e1da8e90
commit 3e95b13b7a

View file

@ -2770,8 +2770,7 @@ int fat_readdir(struct fat_filestr *dirstr, struct fat_dirscan_info *scan,
scan->entries = 0;
#if defined(MAX_VIRT_SECTOR_SIZE) || defined(MAX_VARIABLE_LOG_SECTOR)
struct fat_file *file = dirstr->fatfilep;
const struct bpb *fat_bpb = FAT_BPB(file->volume);
struct bpb *fat_bpb = FAT_BPB(dirstr->fatfilep->volume);
#endif
while (1)