From 3e95b13b7ac30a7ba842829f0f13c9e0f07b70ec Mon Sep 17 00:00:00 2001 From: Solomon Peachy Date: Sat, 9 Nov 2024 18:06:30 -0500 Subject: [PATCH] ata: Fix yellow in some bootloaders, introduced in c61ad40812 Change-Id: I0058fd5339e27505b6f8e4533fda07a1352a5329 --- firmware/drivers/fat.c | 3 +-- 1 file changed, 1 insertion(+), 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)