removes unecessary braces

This commit is contained in:
Marco Pastrello 2023-05-05 00:12:32 +02:00
parent 2dcbe75cca
commit c37f86ff1c

View File

@ -148,10 +148,8 @@ pub(crate) unsafe fn init(config: Config) {
} }
if let Some(pllmul_bits) = pllmul_bits { if let Some(pllmul_bits) = pllmul_bits {
{ let pllctpre_flag: u8 = if config.pllxtpre { 1 } else { 0 };
let pllctpre_flag: u8 = if config.pllxtpre { 1 } else { 0 }; RCC.cfgr().modify(|w| w.set_pllxtpre(Pllxtpre(pllctpre_flag)));
RCC.cfgr().modify(|w| w.set_pllxtpre(Pllxtpre(pllctpre_flag)));
}
// enable PLL and wait for it to be ready // enable PLL and wait for it to be ready
RCC.cfgr().modify(|w| { RCC.cfgr().modify(|w| {