summaryrefslogtreecommitdiff
path: root/nuttx/drivers/mtd/sst25.c
diff options
context:
space:
mode:
Diffstat (limited to 'nuttx/drivers/mtd/sst25.c')
-rw-r--r--nuttx/drivers/mtd/sst25.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/nuttx/drivers/mtd/sst25.c b/nuttx/drivers/mtd/sst25.c
index edd8b7b30..324cbf363 100644
--- a/nuttx/drivers/mtd/sst25.c
+++ b/nuttx/drivers/mtd/sst25.c
@@ -714,7 +714,7 @@ static void sst25_wordwrite(struct sst25_dev_s *priv, FAR const uint8_t *buffer,
* we are finished.
*/
- if (nwords <= 0)
+ if (nwords < 1)
{
return;
}