diff --git a/drivers/clock_control/clock_stm32_ll_h5.c b/drivers/clock_control/clock_stm32_ll_h5.c index e4423f3162aa0c..6ad08d1ee3b933 100644 --- a/drivers/clock_control/clock_stm32_ll_h5.c +++ b/drivers/clock_control/clock_stm32_ll_h5.c @@ -696,8 +696,8 @@ static void set_up_fixed_clock_sources(void) int stm32_clock_control_init(const struct device *dev) { - uint32_t old_hclk_freq = 0; - int r = 0; + uint32_t old_hclk_freq; + int r; ARG_UNUSED(dev); diff --git a/drivers/clock_control/clock_stm32_ll_h7.c b/drivers/clock_control/clock_stm32_ll_h7.c index bcd1873dd81a54..b11e2b5c9f5b6b 100644 --- a/drivers/clock_control/clock_stm32_ll_h7.c +++ b/drivers/clock_control/clock_stm32_ll_h7.c @@ -835,8 +835,8 @@ int stm32_clock_control_init(const struct device *dev) int r = 0; #if defined(CONFIG_CPU_CORTEX_M7) - uint32_t old_hclk_freq = 0; - uint32_t new_hclk_freq = 0; + uint32_t old_hclk_freq; + uint32_t new_hclk_freq; /* HW semaphore Clock enable */ #if defined(CONFIG_SOC_STM32H7A3XX) || defined(CONFIG_SOC_STM32H7A3XXQ) || \ diff --git a/drivers/clock_control/clock_stm32_ll_u5.c b/drivers/clock_control/clock_stm32_ll_u5.c index f28fd6338b8b2e..fc16b5e46e47b0 100644 --- a/drivers/clock_control/clock_stm32_ll_u5.c +++ b/drivers/clock_control/clock_stm32_ll_u5.c @@ -804,8 +804,8 @@ static void set_up_fixed_clock_sources(void) int stm32_clock_control_init(const struct device *dev) { - uint32_t old_hclk_freq = 0; - int r = 0; + uint32_t old_hclk_freq; + int r; ARG_UNUSED(dev); diff --git a/drivers/clock_control/clock_stm32_ll_wba.c b/drivers/clock_control/clock_stm32_ll_wba.c index fc5b1751eb51dc..36cf52064dac51 100644 --- a/drivers/clock_control/clock_stm32_ll_wba.c +++ b/drivers/clock_control/clock_stm32_ll_wba.c @@ -510,7 +510,7 @@ static void set_up_fixed_clock_sources(void) int stm32_clock_control_init(const struct device *dev) { uint32_t old_flash_freq; - int r = 0; + int r; ARG_UNUSED(dev);