arm/phy62xx: fix compile warning ('while' clause does not guard)

chip/flash.c: In function '_spif_read_status_reg_x':
chip/flash.c:46:9: warning: this 'while' clause does not guard... [-Wmisleading-indentation]
   46 |         while ((AP_SPIF->fcmd &0x02)==0x02);         \
      |         ^~~~~
chip/flash.c:128:3: note: in expansion of macro 'SPIF_STATUS_WAIT_IDLE'
  128 |   SPIF_STATUS_WAIT_IDLE(SPIF_WAIT_IDLE_CYC);
      |   ^~~~~~~~~~~~~~~~~~~~~

Signed-off-by: chao an <anchao@xiaomi.com>
This commit is contained in:
chao an 2022-10-24 17:36:17 +08:00 committed by Xiang Xiao
parent fa0577ebfb
commit c629fd1b00

View File

@ -43,7 +43,7 @@
#define SPIF_STATUS_WAIT_IDLE(n) \
do \
{ \
while ((AP_SPIF->fcmd &0x02)==0x02); \
while ((AP_SPIF->fcmd &0x02)==0x02) \
{ \
volatile int delay_cycle = n; \
while (delay_cycle--){;} \