From 34df2126b35b74cc56c727f7f64c01a12572adea Mon Sep 17 00:00:00 2001 From: "Alan C. Assis" Date: Mon, 26 Oct 2020 08:50:37 -0300 Subject: [PATCH] Fix missing 'ret' reported by Frank-Christian Kruegel --- arch/arm/src/stm32h7/stm32_ethernet.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/arch/arm/src/stm32h7/stm32_ethernet.c b/arch/arm/src/stm32h7/stm32_ethernet.c index 3006bc4289..6a231b5cf9 100644 --- a/arch/arm/src/stm32h7/stm32_ethernet.c +++ b/arch/arm/src/stm32h7/stm32_ethernet.c @@ -4362,6 +4362,7 @@ static inline int stm32_ethinitialize(int intf) struct stm32_ethmac_s *priv; uint8_t uid[12]; uint64_t crc; + int ret = OK; ninfo("intf: %d\n", intf); @@ -4431,7 +4432,7 @@ static inline int stm32_ethinitialize(int intf) /* Register the device with the OS so that socket IOCTLs can be performed */ netdev_register(&priv->dev, NET_LL_ETHERNET); - return OK; + return ret; } /****************************************************************************