forked from len0rd/rockbox
ata: Fix yellow in some bootloaders, introduced in c61ad40812
Change-Id: I0058fd5339e27505b6f8e4533fda07a1352a5329
This commit is contained in:
parent
c8e1da8e90
commit
3e95b13b7a
1 changed files with 1 additions and 2 deletions
|
@ -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)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue