flash: fix stm32 flash driver typo's
[fw/openocd] / src / flash / nor / stm32lx.c
index 27a446de19b4522f5494ab8e54fa3ed00f591099..fedab300619638bcb80fb19064bf2ee5795ac0a0 100644 (file)
@@ -490,14 +490,14 @@ static int stm32lx_probe(struct flash_bank *bank)
        if ((device_id & 0xfff) == 0x416) {
                /* check for early silicon */
                if (flash_size_in_kb == 0xffff) {
-                       /* number of sectors may be incorrrect on early silicon */
+                       /* number of sectors may be incorrect on early silicon */
                        LOG_WARNING("STM32 flash size failed, probe inaccurate - assuming 128k flash");
                        flash_size_in_kb = 128;
                }
        } else if ((device_id & 0xfff) == 0x436) {
                /* check for early silicon */
                if (flash_size_in_kb == 0xffff) {
-                       /* number of sectors may be incorrrect on early silicon */
+                       /* number of sectors may be incorrect on early silicon */
                        LOG_WARNING("STM32 flash size failed, probe inaccurate - assuming 384k flash");
                        flash_size_in_kb = 384;
                }