summaryrefslogtreecommitdiff
path: root/env
diff options
context:
space:
mode:
authorFabio Estevam <[email protected]>2025-08-12 14:46:12 -0300
committerTom Rini <[email protected]>2025-08-20 15:05:31 -0600
commit82444e3ecd0ea8404ed6fd1dd3710bfd8d641f52 (patch)
tree739606e5d1e0466d9747a29b4c2b77dd92062479 /env
parent7b21bf086053679c5ef1ea612072a78018370281 (diff)
env: fat: Standardize the interface type check
Make the interface type check consistent among the other interface types by checking it agains the ifname string. The ifname string contains the string returned by env_fat_get_intf(), which returns the CONFIG_ENV_FAT_INTERFACE value. No functional change. Signed-off-by: Fabio Estevam <[email protected]>
Diffstat (limited to 'env')
-rw-r--r--env/fat.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/env/fat.c b/env/fat.c
index 412d95dc305..58c279ff769 100644
--- a/env/fat.c
+++ b/env/fat.c
@@ -131,7 +131,7 @@ static int env_fat_load(void)
#endif
#ifndef CONFIG_XPL_BUILD
#if defined(CONFIG_AHCI) || defined(CONFIG_SCSI)
- if (!strcmp(CONFIG_ENV_FAT_INTERFACE, "scsi"))
+ if (!strcmp(ifname, "scsi"))
scsi_scan(true);
#endif
#if defined(CONFIG_VIRTIO)