This is an automated email from the ASF dual-hosted git repository. pkarashchenko pushed a commit to branch master in repository https://gitbox.apache.org/repos/asf/incubator-nuttx.git
commit d8babf8dfd20a0fc1c6d9f1f783a8e10d268c8c7 Author: Xiang Xiao <[email protected]> AuthorDate: Wed Oct 26 11:05:01 2022 +0800 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 <[email protected]> --- 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 */
