aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTarek BOCHKATI <tarek.bouchkati@st.com>2022-10-20 20:48:48 +0100
committerAntonio Borneo <borneo.antonio@gmail.com>2023-01-15 15:00:38 +0000
commit66da6f20e4df20511828424d835dfade7dd9d535 (patch)
tree6b906c83f8194cef4d8b09eaa0c64fad1550c18b
parent30631224da59608d93f56bac0f68acd6c8fd32ac (diff)
downloadriscv-openocd-66da6f20e4df20511828424d835dfade7dd9d535.zip
riscv-openocd-66da6f20e4df20511828424d835dfade7dd9d535.tar.gz
riscv-openocd-66da6f20e4df20511828424d835dfade7dd9d535.tar.bz2
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
-rw-r--r--src/flash/nor/stm32l4x.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/flash/nor/stm32l4x.c b/src/flash/nor/stm32l4x.c
index 7a6ec3f..92d511c 100644
--- a/src/flash/nor/stm32l4x.c
+++ b/src/flash/nor/stm32l4x.c
@@ -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)