Skip to content

Commit fd87024

Browse files
Bernd Weibergnashif
authored andcommitted
drivers: fixed return code bug in eth_stm32_hal_set_config()
The function eth_stm32_hal_set_config() located in drivers/ethernet/eth_stm32_hal.c always returns -ENOTSUP, even if everything is fine. This commit fixes the return statement so that the real result (ret) will be returned. Signed-off-by: Bernd Weiberg <[email protected]>
1 parent f1d5066 commit fd87024

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/ethernet/eth_stm32_hal.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1020,7 +1020,7 @@ static int eth_stm32_hal_set_config(const struct device *dev,
10201020
break;
10211021
}
10221022

1023-
return -ENOTSUP;
1023+
return ret;
10241024
}
10251025

10261026
#if defined(CONFIG_PTP_CLOCK_STM32_HAL)

0 commit comments

Comments
 (0)