summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSolomon Peachy <pizza@shaftnet.org>2024-11-09 18:06:30 -0500
committerSolomon Peachy <pizza@shaftnet.org>2024-11-09 18:07:14 -0500
commit3e95b13b7ac30a7ba842829f0f13c9e0f07b70ec (patch)
tree02f19c36733fdb123cb8943c57d8909686d1336e
parentc8e1da8e908c3cf3559664a5b70105548c91db54 (diff)
downloadrockbox-3e95b13b7a.tar.gz
rockbox-3e95b13b7a.zip
ata: Fix yellow in some bootloaders, introduced in c61ad40812
Change-Id: I0058fd5339e27505b6f8e4533fda07a1352a5329
-rw-r--r--firmware/drivers/fat.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/firmware/drivers/fat.c b/firmware/drivers/fat.c
index a3dc69275c..7d6adcbe65 100644
--- a/firmware/drivers/fat.c
+++ b/firmware/drivers/fat.c
@@ -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)