Skip to content

Commit 1889b71

Browse files
tpamborerwango
authored andcommitted
stm32cube: stm32h5: rcc: remove extraneous parentheses
Fix warning about extraneous parentheses when compiling with clang. Signed-off-by: Tim Pambor <[email protected]>
1 parent 5d27023 commit 1889b71

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed

stm32cube/stm32h5xx/README

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -74,4 +74,9 @@ Patch List:
7474
Impacted file:
7575
stm32cube/stm32h5xx/drivers/src/stm32h5xx_hal_sdio.c
7676

77+
*Fix warning about extraneous parentheses when compiling with clang
78+
ST internal bug: 218364
79+
Impacted files:
80+
stm32cube/stm32h5xx/drivers/src/stm32h5xx_hal_rcc_ex.c
81+
7782
See release_note.html from STM32Cube

stm32cube/stm32h5xx/drivers/src/stm32h5xx_hal_rcc_ex.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3510,7 +3510,7 @@ uint32_t HAL_RCCEx_GetPeriphCLKFreq(uint64_t PeriphClk)
35103510
frequency = pll2_clocks.PLL2_Q_Frequency;
35113511
}
35123512
#if defined(RCC_USART2CLKSOURCE_PLL3Q)
3513-
else if ((srcclk == RCC_USART2CLKSOURCE_PLL3Q))
3513+
else if (srcclk == RCC_USART2CLKSOURCE_PLL3Q)
35143514
{
35153515
HAL_RCCEx_GetPLL3ClockFreq(&pll3_clocks);
35163516
frequency = pll3_clocks.PLL3_Q_Frequency;

0 commit comments

Comments
 (0)