From 97f20198a0146095a7464ac66d85d6c722cb7107 Mon Sep 17 00:00:00 2001 From: Jose Alamos Date: Tue, 22 Jun 2021 10:57:21 +0200 Subject: [PATCH] stm32/eth: avoid explicit cast to netdev --- cpu/stm32/periph/eth.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cpu/stm32/periph/eth.c b/cpu/stm32/periph/eth.c index fa036cbb2f..ea053b12c8 100644 --- a/cpu/stm32/periph/eth.c +++ b/cpu/stm32/periph/eth.c @@ -310,7 +310,7 @@ static int stm32_eth_get(netdev_t *dev, netopt_t opt, static void _timer_cb(void *arg) { - netdev_t *dev = (netdev_t *)arg; + netdev_t *dev = arg; uint8_t state = LINK_STATE_DOWN; if (_get_link_status()) { state = LINK_STATE_UP;