Skip to content

Commit 2b8df6b

Browse files
FRASTMnashif
authored andcommitted
tests: drivers: flash running on disco stm32 board with qspi
Restore the testcase to run on the qspi nor-flash controller of the disco_l475_iot1 board of the disco stm32f746 board Signed-off-by: Francois Ramu <[email protected]>
1 parent 2f4cfca commit 2b8df6b

File tree

3 files changed

+3
-69
lines changed

3 files changed

+3
-69
lines changed

drivers/flash/flash_stm32_qspi.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -312,7 +312,7 @@ static int flash_stm32_qspi_read(const struct device *dev, off_t addr,
312312
}
313313

314314
/* read non-zero size */
315-
if (!size) {
315+
if (size == 0) {
316316
return 0;
317317
}
318318

@@ -365,7 +365,7 @@ static int flash_stm32_qspi_write(const struct device *dev, off_t addr,
365365
}
366366

367367
/* write non-zero size */
368-
if (!size) {
368+
if (size == 0) {
369369
return 0;
370370
}
371371

@@ -440,7 +440,7 @@ static int flash_stm32_qspi_erase(const struct device *dev, off_t addr,
440440
}
441441

442442
/* erase non-zero size */
443-
if (!size) {
443+
if (size == 0) {
444444
return 0;
445445
}
446446

tests/drivers/flash/boards/disco_l475_iot1.overlay

Lines changed: 0 additions & 33 deletions
This file was deleted.

tests/drivers/flash/boards/stm32f746g_disco.overlay

Lines changed: 0 additions & 33 deletions
This file was deleted.

0 commit comments

Comments
 (0)