diff --git a/plat/intel/soc/common/soc/socfpga_mailbox.c b/plat/intel/soc/common/soc/socfpga_mailbox.c index be900c967..fbb6b465e 100644 --- a/plat/intel/soc/common/soc/socfpga_mailbox.c +++ b/plat/intel/soc/common/soc/socfpga_mailbox.c @@ -507,11 +507,13 @@ int intel_mailbox_get_config_status(uint32_t cmd, bool init_done) return MBOX_CFGSTAT_STATE_ERROR_HARDWARE; } - if ((res & SOFTFUNC_STATUS_CONF_DONE) == 0U) + if ((res & SOFTFUNC_STATUS_CONF_DONE) == 0U) { return MBOX_CFGSTAT_STATE_CONFIG; + } - if (init_done && (res & SOFTFUNC_STATUS_INIT_DONE) == 0U) + if (init_done && (res & SOFTFUNC_STATUS_INIT_DONE) == 0U) { return MBOX_CFGSTAT_STATE_CONFIG; + } return MBOX_RET_OK; }