Skip to content

Commit 8477422

Browse files
committed
STM32: Remove lwip compilation warnings
1 parent 35bf526 commit 8477422

File tree

1 file changed

+1
-4
lines changed
  • features/FEATURE_LWIP/lwip-interface/lwip-eth/arch/TARGET_STM

1 file changed

+1
-4
lines changed

features/FEATURE_LWIP/lwip-interface/lwip-eth/arch/TARGET_STM/stm32xx_emac.c

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -95,9 +95,6 @@ void ETH_IRQHandler(void)
9595
*/
9696
static void _eth_arch_low_level_init(struct netif *netif)
9797
{
98-
uint32_t regvalue = 0;
99-
HAL_StatusTypeDef hal_eth_init_status;
100-
10198
/* Init ETH */
10299
uint8_t MACAddr[6];
103100
EthHandle.Instance = ETH;
@@ -119,7 +116,7 @@ static void _eth_arch_low_level_init(struct netif *netif)
119116
EthHandle.Init.RxMode = ETH_RXINTERRUPT_MODE;
120117
EthHandle.Init.ChecksumMode = ETH_CHECKSUM_BY_HARDWARE;
121118
EthHandle.Init.MediaInterface = ETH_MEDIA_INTERFACE_RMII;
122-
hal_eth_init_status = HAL_ETH_Init(&EthHandle);
119+
HAL_ETH_Init(&EthHandle);
123120

124121
/* Initialize Tx Descriptors list: Chain Mode */
125122
HAL_ETH_DMATxDescListInit(&EthHandle, DMATxDscrTab, &Tx_Buff[0][0], ETH_TXBUFNB);

0 commit comments

Comments
 (0)