summaryrefslogtreecommitdiff
path: root/src/soc/mediatek/common/msdc.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/soc/mediatek/common/msdc.c')
-rw-r--r--src/soc/mediatek/common/msdc.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/soc/mediatek/common/msdc.c b/src/soc/mediatek/common/msdc.c
index 6e0086ba75..c6f77abc5c 100644
--- a/src/soc/mediatek/common/msdc.c
+++ b/src/soc/mediatek/common/msdc.c
@@ -443,7 +443,7 @@ static void set_early_mmc_wake_status(int32_t status)
ms_cbmem = cbmem_add(CBMEM_ID_MMC_STATUS, sizeof(status));
- if (ms_cbmem == NULL) {
+ if (!ms_cbmem) {
printk(BIOS_ERR,
"%s: Failed to add early mmc wake status to cbmem!\n",
__func__);