From 4aad964d4855e07b7146446679b3c717f6c7e767 Mon Sep 17 00:00:00 2001 From: Xiang Xiao Date: Mon, 24 Oct 2022 01:44:00 +0800 Subject: [PATCH] Fix sam4s_nand.c:152:3: error: this 'while' clause does not guard... [-Werror=misleading-indentation] Signed-off-by: Xiang Xiao --- arch/arm/src/sam34/sam4s_nand.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/arch/arm/src/sam34/sam4s_nand.c b/arch/arm/src/sam34/sam4s_nand.c index abe9c6000f..953a799457 100644 --- a/arch/arm/src/sam34/sam4s_nand.c +++ b/arch/arm/src/sam34/sam4s_nand.c @@ -149,7 +149,10 @@ static int nand_wait_ready(struct sam_nandcs_s *priv) /* The ready/busy (R/nB) signal of the NAND Flash */ - while (!sam_gpioread(priv->rb)); + while (!sam_gpioread(priv->rb)) + { + } + WRITE_COMMAND8(&priv->raw, COMMAND_STATUS); /* Issue command */