bsps/riscv/.../altera_epcq_driver.c: Address type-limits warnings

This change was made to address GCC -Wtype-limits warnings.
In this case, the counter variable was uint16_t but the value
of ALTERA_EPCQ_CONTROLLER2_1US_TIMEOUT_VALUE was too large
for uint16_t.
This commit is contained in:
Joel Sherrill
2025-11-25 12:54:55 -06:00
committed by Gedare Bloom
parent 32122555de
commit 69ab3140f8

View File

@@ -872,7 +872,7 @@ static int alt_epcq_poll_for_write_in_progress (
/* we'll want to implement timeout if a timeout value is specified */
#if ALTERA_EPCQ_CONTROLLER2_1US_TIMEOUT_VALUE > 0
uint32_t timeout = ALTERA_EPCQ_CONTROLLER2_1US_TIMEOUT_VALUE;
uint16_t counter = 0;
uint32_t counter = 0;
#endif
/* return -EINVAL if epcq_flash_info is NULL */