boards/xtensa/esp32s3: Treat return value that greater than zero as succ
board_spiflash_init() => init_storage_partition() => parse_mtd_partition() `parse_mtd_partition()` may return value that greater than zero when succ Signed-off-by: wangjianyu3 <wangjianyu3@xiaomi.com>
This commit is contained in:
parent
eff13d6004
commit
5fabe091f3
1 changed files with 1 additions and 1 deletions
|
@ -243,7 +243,7 @@ int esp32s3_bringup(void)
|
|||
|
||||
#ifdef CONFIG_ESP32S3_SPIFLASH
|
||||
ret = board_spiflash_init();
|
||||
if (ret)
|
||||
if (ret < 0)
|
||||
{
|
||||
syslog(LOG_ERR, "ERROR: Failed to initialize SPI Flash\n");
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue