Skip to content

Commit ec01159

Browse files
kartbendkalowsk
authored andcommitted
drivers: clock_control: wch_rcc: remove duplicate reg write
Removed a redundant register write to FLASH->ACTLR Signed-off-by: Benjamin Cabé <[email protected]>
1 parent 08d496b commit ec01159

File tree

1 file changed

+0
-1
lines changed

1 file changed

+0
-1
lines changed

drivers/clock_control/clock_control_wch_rcc.c

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,6 @@ static void clock_control_wch_rcc_setup_flash(void)
9898
} else {
9999
latency = FLASH_ACTLR_LATENCY_2;
100100
}
101-
FLASH->ACTLR = (FLASH->ACTLR & ~FLASH_ACTLR_LATENCY) | latency;
102101
#else
103102
#error Unrecognised SOC family
104103
#endif

0 commit comments

Comments
 (0)