mirror of
https://github.com/apache/nuttx.git
synced 2026-05-23 23:28:29 +08:00
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:
committed by
Mateusz Szafoni
parent
28206007e0
commit
5c7c7f8ca3
@@ -3130,7 +3130,9 @@ static inline int stm32_dm9161(struct stm32_ethmac_s *priv)
|
||||
|
||||
static int stm32_phyinit(struct stm32_ethmac_s *priv)
|
||||
{
|
||||
#ifdef CONFIG_STM32F7_AUTONEG
|
||||
volatile uint32_t timeout;
|
||||
#endif
|
||||
uint32_t regval;
|
||||
uint16_t phyval;
|
||||
int ret;
|
||||
|
||||
Reference in New Issue
Block a user