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 <xiaoxiang@xiaomi.com>
This commit is contained in:
Xiang Xiao 2022-10-26 11:05:01 +08:00 committed by Petro Karashchenko
parent eeefc4a516
commit d8babf8dfd

View File

@ -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 */