summaryrefslogtreecommitdiff
path: root/src/mainboard/google/dedede
diff options
context:
space:
mode:
Diffstat (limited to 'src/mainboard/google/dedede')
-rw-r--r--src/mainboard/google/dedede/variants/drawcia/variant.c6
-rw-r--r--src/mainboard/google/dedede/variants/galtic/variant.c6
-rw-r--r--src/mainboard/google/dedede/variants/madoo/variant.c6
-rw-r--r--src/mainboard/google/dedede/variants/magolor/variant.c6
4 files changed, 8 insertions, 16 deletions
diff --git a/src/mainboard/google/dedede/variants/drawcia/variant.c b/src/mainboard/google/dedede/variants/drawcia/variant.c
index 0c2290432e..9dc0028e7c 100644
--- a/src/mainboard/google/dedede/variants/drawcia/variant.c
+++ b/src/mainboard/google/dedede/variants/drawcia/variant.c
@@ -6,12 +6,10 @@
const char *get_wifi_sar_cbfs_filename(void)
{
- const char *filename = NULL;
-
if (fw_config_probe(FW_CONFIG(TABLETMODE, TABLETMODE_ENABLED)))
- filename = "wifi_sar-drawcia.hex";
+ return "wifi_sar-drawcia.hex";
- return filename;
+ return WIFI_SAR_CBFS_DEFAULT_FILENAME;
}
const char *mainboard_vbt_filename(void)
diff --git a/src/mainboard/google/dedede/variants/galtic/variant.c b/src/mainboard/google/dedede/variants/galtic/variant.c
index e7b1bb8ccd..92aa1767cf 100644
--- a/src/mainboard/google/dedede/variants/galtic/variant.c
+++ b/src/mainboard/google/dedede/variants/galtic/variant.c
@@ -5,9 +5,7 @@
const char *get_wifi_sar_cbfs_filename(void)
{
- const char *filename = NULL;
-
if (fw_config_probe(FW_CONFIG(TABLETMODE, TABLETMODE_ENABLED)))
- filename = "wifi_sar-galtic.hex";
- return filename;
+ return "wifi_sar-galtic.hex";
+ return WIFI_SAR_CBFS_DEFAULT_FILENAME;
}
diff --git a/src/mainboard/google/dedede/variants/madoo/variant.c b/src/mainboard/google/dedede/variants/madoo/variant.c
index b8c3654ab0..94e4d9023c 100644
--- a/src/mainboard/google/dedede/variants/madoo/variant.c
+++ b/src/mainboard/google/dedede/variants/madoo/variant.c
@@ -5,10 +5,8 @@
const char *get_wifi_sar_cbfs_filename(void)
{
- const char *filename = NULL;
-
if (fw_config_probe(FW_CONFIG(TABLETMODE, TABLETMODE_ENABLED)))
- filename = "wifi_sar-madoo.hex";
+ return "wifi_sar-madoo.hex";
- return filename;
+ return WIFI_SAR_CBFS_DEFAULT_FILENAME;
}
diff --git a/src/mainboard/google/dedede/variants/magolor/variant.c b/src/mainboard/google/dedede/variants/magolor/variant.c
index e3b9599a91..68ce6c2316 100644
--- a/src/mainboard/google/dedede/variants/magolor/variant.c
+++ b/src/mainboard/google/dedede/variants/magolor/variant.c
@@ -5,10 +5,8 @@
const char *get_wifi_sar_cbfs_filename(void)
{
- const char *filename = NULL;
-
if (fw_config_probe(FW_CONFIG(TABLETMODE, TABLETMODE_ENABLED)))
- filename = "wifi_sar-magolor.hex";
+ return "wifi_sar-magolor.hex";
- return filename;
+ return WIFI_SAR_CBFS_DEFAULT_FILENAME;
}