summaryrefslogtreecommitdiff
path: root/src/ec/google/chromeec/ec.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/ec/google/chromeec/ec.c')
-rw-r--r--src/ec/google/chromeec/ec.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/src/ec/google/chromeec/ec.c b/src/ec/google/chromeec/ec.c
index affe66ef8f..29d04119b8 100644
--- a/src/ec/google/chromeec/ec.c
+++ b/src/ec/google/chromeec/ec.c
@@ -856,10 +856,8 @@ int google_chromeec_cbi_get_fw_config(uint64_t *fw_config)
if (CONFIG(EC_GOOGLE_CHROMEEC_INCLUDE_SSFC_IN_FW_CONFIG)) {
uint32_t ssfc;
- if (google_chromeec_cbi_get_ssfc(&ssfc))
- return -1;
-
- *fw_config |= (uint64_t)ssfc << 32;
+ if (!google_chromeec_cbi_get_ssfc(&ssfc))
+ *fw_config |= (uint64_t)ssfc << 32;
}
return 0;
}