S25FL1 FLASH driver: Fix return value from the bwrite() method

This commit is contained in:
Gregory Nutt
2015-11-07 11:26:53 -06:00
parent 41337324ba
commit b2bdba0824
4 changed files with 7 additions and 5 deletions
+1 -1
View File
@@ -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;
}
/************************************************************************************