diff --git a/drivers/mtd/mtd_rwbuffer.c b/drivers/mtd/mtd_rwbuffer.c index f97c00a718..0cb3701af3 100644 --- a/drivers/mtd/mtd_rwbuffer.c +++ b/drivers/mtd/mtd_rwbuffer.c @@ -376,7 +376,7 @@ FAR struct mtd_dev_s *mtd_rwb_initialize(FAR struct mtd_dev_s *mtd) */ priv->spb = geo.erasesize / geo.blocksize; - DEBUGASSERT((size_t)priv->spb * geo_blocksize = geo.erasesize); + DEBUGASSERT((size_t)priv->spb * geo.blocksize == geo.erasesize); /* Values must be provided to rwb_initialize() */ /* Supported geometry */