Skip to content

Commit f7a030e

Browse files
author
Juho Eskeli
committed
Remove redundant error flag clearing operation
1 parent 3a6b52f commit f7a030e

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

targets/TARGET_STM/TARGET_STM32L4/flash_api.c

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -140,8 +140,6 @@ int32_t flash_erase_sector(flash_t *obj, uint32_t address)
140140
/* Clear error programming flags */
141141
__HAL_FLASH_CLEAR_FLAG(FLASH_FLAG_ALL_ERRORS);
142142

143-
/* Clear OPTVERR bit set on virgin samples */
144-
__HAL_FLASH_CLEAR_FLAG(FLASH_FLAG_OPTVERR);
145143
/* Get the 1st page to erase */
146144
FirstPage = GetPage(address);
147145
/* MBED HAL erases 1 page / sector at a time */

0 commit comments

Comments
 (0)