Skip to content

Commit 77c96a3

Browse files
committed
fix(wire): remove duplicated function call
which is used without definition checking Signed-off-by: Frederic Pillon <frederic.pillon@st.com>
1 parent d6ae8b2 commit 77c96a3

File tree

1 file changed

+0
-4
lines changed
  • libraries/Wire/src/utility

1 file changed

+0
-4
lines changed

libraries/Wire/src/utility/twi.c

-4
Original file line numberDiff line numberDiff line change
@@ -410,11 +410,7 @@ static uint32_t i2c_getClkFreq(I2C_TypeDef *i2c)
410410
#else
411411
clkSrcFreq = HAL_RCCEx_GetPeriphCLKFreq(RCC_PERIPHCLK_I2C35);
412412
#endif
413-
if (clkSrcFreq == 0)
414413
#endif
415-
{
416-
clkSrcFreq = HAL_RCCEx_GetPeriphCLKFreq(RCC_PERIPHCLK_I2C35);
417-
}
418414
}
419415
#endif // I2C5_BASE
420416
#if defined(I2C6_BASE)

0 commit comments

Comments
 (0)