From beb2826ffd6877031ed4de8ec8b2990fe9bc8c4b Mon Sep 17 00:00:00 2001 From: Eric Lai Date: Thu, 22 Dec 2022 11:56:50 +0800 Subject: mb/google/nissa/var/craask: Use get_wifi_sar_fw_config_filename Use get_wifi_sar_fw_config_filename to remove the duplicate code. Signed-off-by: Eric Lai Change-Id: I04176fee373e534d42c72506df73a092ad55e65b Reviewed-on: https://review.coreboot.org/c/coreboot/+/71218 Tested-by: build bot (Jenkins) Reviewed-by: Kangheui Won Reviewed-by: Subrata Banik Reviewed-by: Ivy Jian --- src/mainboard/google/brya/variants/craask/variant.c | 11 +---------- 1 file changed, 1 insertion(+), 10 deletions(-) (limited to 'src') diff --git a/src/mainboard/google/brya/variants/craask/variant.c b/src/mainboard/google/brya/variants/craask/variant.c index 689a59a8a6..19f3d5eac3 100644 --- a/src/mainboard/google/brya/variants/craask/variant.c +++ b/src/mainboard/google/brya/variants/craask/variant.c @@ -6,14 +6,5 @@ const char *get_wifi_sar_cbfs_filename(void) { - if (fw_config_probe(FW_CONFIG(WIFI_SAR_ID, ID_0))) { - printk(BIOS_INFO, "Use wifi_sar_0.hex.\n"); - return "wifi_sar_0.hex"; - } - - else if (fw_config_probe(FW_CONFIG(WIFI_SAR_ID, UNUSED))) { - printk(BIOS_INFO, "Wi-Fi SAR not used, return NULL!\n"); - } - - return NULL; + return get_wifi_sar_fw_config_filename(FW_CONFIG_FIELD(WIFI_SAR_ID)); } -- cgit v1.2.3