arch/arm/src/stm32f7/stm32_ethernet.c: Fix "unused variable" warning

Fix build warning when CONFIG_STM32F7_AUTONEG is not set

Signed-off-by: Jukka Laitinen <jukkax@ssrc.tii.ae>
This commit is contained in:
Jukka Laitinen 2023-02-03 17:17:15 +04:00 committed by Mateusz Szafoni
parent 28206007e0
commit 5c7c7f8ca3

View file

@ -3130,7 +3130,9 @@ static inline int stm32_dm9161(struct stm32_ethmac_s *priv)
static int stm32_phyinit(struct stm32_ethmac_s *priv) static int stm32_phyinit(struct stm32_ethmac_s *priv)
{ {
#ifdef CONFIG_STM32F7_AUTONEG
volatile uint32_t timeout; volatile uint32_t timeout;
#endif
uint32_t regval; uint32_t regval;
uint16_t phyval; uint16_t phyval;
int ret; int ret;