]> git.ipfire.org Git - thirdparty/u-boot.git/commitdiff
env: fat: Standardize the interface type check
authorFabio Estevam <festevam@gmail.com>
Tue, 12 Aug 2025 17:46:12 +0000 (14:46 -0300)
committerTom Rini <trini@konsulko.com>
Wed, 20 Aug 2025 21:05:31 +0000 (15:05 -0600)
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 <festevam@gmail.com>
env/fat.c

index 412d95dc3057e11fa08343cf979a8bdd379736e1..58c279ff7690855fcfd0e4f6f44977949eeb4573 100644 (file)
--- 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)