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; }