From d8babf8dfd20a0fc1c6d9f1f783a8e10d268c8c7 Mon Sep 17 00:00:00 2001 From: Xiang Xiao Date: Wed, 26 Oct 2022 11:05:01 +0800 Subject: [PATCH] Fix board/cxd56_sdcard.c:128:11: error: logical not is only applied to the left hand side of this comparison [-Werror,-Wlogical-not-parentheses] Signed-off-by: Xiang Xiao --- boards/arm/cxd56xx/spresense/src/cxd56_sdcard.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/boards/arm/cxd56xx/spresense/src/cxd56_sdcard.c b/boards/arm/cxd56xx/spresense/src/cxd56_sdcard.c index 42a63bbd4e..3701fb8a1d 100644 --- a/boards/arm/cxd56xx/spresense/src/cxd56_sdcard.c +++ b/boards/arm/cxd56xx/spresense/src/cxd56_sdcard.c @@ -125,7 +125,7 @@ static void board_sdcard_enable(void *arg) /* If not initialize SD slot */ - if (!nx_stat("/dev/mmcsd0", &stat_sdio, 1) == 0) + if (nx_stat("/dev/mmcsd0", &stat_sdio, 1) != 0) { /* Now bind the SDHC interface to the MMC/SD driver */