From c37f86ff1c507cc036b9754a00dea85d439a8369 Mon Sep 17 00:00:00 2001 From: Marco Pastrello Date: Fri, 5 May 2023 00:12:32 +0200 Subject: [PATCH] removes unecessary braces --- embassy-stm32/src/rcc/f1.rs | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/embassy-stm32/src/rcc/f1.rs b/embassy-stm32/src/rcc/f1.rs index 106acb09..3c374adf 100644 --- a/embassy-stm32/src/rcc/f1.rs +++ b/embassy-stm32/src/rcc/f1.rs @@ -148,10 +148,8 @@ pub(crate) unsafe fn init(config: Config) { } if let Some(pllmul_bits) = pllmul_bits { - { - let pllctpre_flag: u8 = if config.pllxtpre { 1 } else { 0 }; - RCC.cfgr().modify(|w| w.set_pllxtpre(Pllxtpre(pllctpre_flag))); - } + let pllctpre_flag: u8 = if config.pllxtpre { 1 } else { 0 }; + RCC.cfgr().modify(|w| w.set_pllxtpre(Pllxtpre(pllctpre_flag))); // enable PLL and wait for it to be ready RCC.cfgr().modify(|w| {