mirror of
https://github.com/apache/nuttx.git
synced 2026-06-06 08:36:24 +08:00
S25FL1 FLASH driver: Fix return value from the bwrite() method
This commit is contained in:
@@ -1289,7 +1289,7 @@ static ssize_t st25fl1_bwrite(FAR struct mtd_dev_s *dev, off_t startblock,
|
||||
|
||||
st25fl1_unlock(priv->qspi);
|
||||
|
||||
return ret;
|
||||
return ret < 0 ? ret : nblocks;
|
||||
}
|
||||
|
||||
/************************************************************************************
|
||||
|
||||
Reference in New Issue
Block a user