From 82444e3ecd0ea8404ed6fd1dd3710bfd8d641f52 Mon Sep 17 00:00:00 2001 From: Fabio Estevam Date: Tue, 12 Aug 2025 14:46:12 -0300 Subject: [PATCH] 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 --- env/fat.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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) -- 2.47.3