mirror of
https://github.com/apache/nuttx.git
synced 2026-05-18 00:34:10 +08:00
36e5752205
the MTD ERASE interface has inconsistent return values. Some implementations return the number of erased sectors, while others return OK (0). It is currently recommended to uniformly treat ERASE success as OK. Therefore, the logic for judging the return value of MTD_ERASE in the FTL erase interface should be changed to check if it is greater than 0. Signed-off-by: jingfei <jingfei@xiaomi.com>