From 64d8fc7c0cacdfabdbe81b54d8a1873be502e489 Mon Sep 17 00:00:00 2001 From: Aidan MacDonald Date: Tue, 7 Jan 2025 12:17:44 +0000 Subject: [PATCH] Sansa Connect: fix a likely typo in busy wait loop in USB driver GCC 9.5 issues a -Wmisleading-indentation warning due to an extra semicolon at the end of the while loop. It does seem unintentional since the loop is a busy wait, so remove the semicolon. Change-Id: I83b8676cbf38434b8148c43906c6bba9c16d036e --- .../target/arm/tms320dm320/sansa-connect/tnetv105_usb_drv.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/firmware/target/arm/tms320dm320/sansa-connect/tnetv105_usb_drv.c b/firmware/target/arm/tms320dm320/sansa-connect/tnetv105_usb_drv.c index e5a9000f40..61a5a1dbaa 100644 --- a/firmware/target/arm/tms320dm320/sansa-connect/tnetv105_usb_drv.c +++ b/firmware/target/arm/tms320dm320/sansa-connect/tnetv105_usb_drv.c @@ -214,7 +214,7 @@ static int tnetv_hw_reset(void) VL_CTRL &= ~VLYNQ_CTL_RESET_MASK; timeout = 0; - while (!(VL_STAT & VLYNQ_STS_LINK_MASK) && timeout++ < 50); + while (!(VL_STAT & VLYNQ_STS_LINK_MASK) && timeout++ < 50) { mdelay(40); }