From 3c53300002c771c26a8dc597cf950e6b077193be Mon Sep 17 00:00:00 2001 From: Eric Lai Date: Tue, 20 Dec 2022 13:11:47 +0800 Subject: mb/google/volteer/var/lindar: Use get_wifi_sar_fw_config_filename Use get_wifi_sar_fw_config_filename to remove the duplicate code. WIFI_SAR_CBFS_DEFAULT_FILENAME is not exist, so return the non-exist id has the same outcome. Signed-off-by: Eric Lai Change-Id: Ib34e6b4f435880d62936ae54f19ba2ec752eced2 Reviewed-on: https://review.coreboot.org/c/coreboot/+/71123 Tested-by: build bot (Jenkins) Reviewed-by: Julius Werner Reviewed-by: Subrata Banik Reviewed-by: Ivy Jian --- src/mainboard/google/volteer/variants/lindar/variant.c | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) (limited to 'src/mainboard') diff --git a/src/mainboard/google/volteer/variants/lindar/variant.c b/src/mainboard/google/volteer/variants/lindar/variant.c index 0f985985e2..e9b7848887 100644 --- a/src/mainboard/google/volteer/variants/lindar/variant.c +++ b/src/mainboard/google/volteer/variants/lindar/variant.c @@ -6,12 +6,7 @@ const char *get_wifi_sar_cbfs_filename(void) { - if (fw_config_probe(FW_CONFIG(WIFI_SAR_ID, WIFI_SAR_ID_0))) - return "wifi_sar_0.hex"; - else if (fw_config_probe(FW_CONFIG(WIFI_SAR_ID, WIFI_SAR_ID_1))) - return "wifi_sar_1.hex"; - - return WIFI_SAR_CBFS_DEFAULT_FILENAME; + return get_wifi_sar_fw_config_filename(FW_CONFIG_FIELD(WIFI_SAR_ID)); } const char *mainboard_vbt_filename(void) -- cgit v1.2.3