stm32: flash: remove superfluous locking of option bytes
Comments were not consistent, and this serves no purpose. There's no reason to explicitly lock the flash first before unlocking. These bits are simply set when the keys are written.
This commit is contained in:
@@ -91,10 +91,6 @@ reset.
|
||||
|
||||
void flash_unlock_option_bytes(void)
|
||||
{
|
||||
/* Clear the unlock state. */
|
||||
FLASH_OPTCR |= FLASH_OPTCR_OPTLOCK;
|
||||
|
||||
/* Unlock option bytes. */
|
||||
FLASH_OPTKEYR = FLASH_OPTKEYR_KEY1;
|
||||
FLASH_OPTKEYR = FLASH_OPTKEYR_KEY2;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user