You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@nuttx.apache.org by pk...@apache.org on 2022/10/30 15:03:49 UTC

[incubator-nuttx] 08/22: 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]

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 <xi...@xiaomi.com>
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 <xi...@xiaomi.com>
---
 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 */