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:
parent
fa0577ebfb
commit
c629fd1b00
@ -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--){;} \
|
||||
|
Loading…
Reference in New Issue
Block a user