flash/stm32l4x: avoid multiple assignments
Change-Id: I6d8e0fbfa7e05f26295fc22733c65c11f7460b51 Signed-off-by: Tarek BOCHKATI <tarek.bouchkati@st.com> Reviewed-on: https://review.openocd.org/c/openocd/+/7282 Reviewed-by: Antonio Borneo <borneo.antonio@gmail.com> Reviewed-by: Tomas Vanek <vanekt@fbl.cz> Tested-by: jenkins
This commit is contained in:
parent
30631224da
commit
66da6f20e4
|
@ -1740,7 +1740,8 @@ static int stm32l4_probe(struct flash_bank *bank)
|
|||
|
||||
/* Set flash write alignment boundaries.
|
||||
* Ask the flash infrastructure to ensure required alignment */
|
||||
bank->write_start_alignment = bank->write_end_alignment = stm32l4_info->data_width;
|
||||
bank->write_start_alignment = stm32l4_info->data_width;
|
||||
bank->write_end_alignment = stm32l4_info->data_width;
|
||||
|
||||
/* Initialize the flash registers layout */
|
||||
if (part_info->flags & F_HAS_L5_FLASH_REGS)
|
||||
|
|
Loading…
Reference in New Issue