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:
parent
28206007e0
commit
5c7c7f8ca3
1 changed files with 2 additions and 0 deletions
|
|
@ -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;
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue