From 289b3e281f6d9c655f52b1375c59f52d70a03086 Mon Sep 17 00:00:00 2001 From: Gregory Nutt Date: Sun, 22 Nov 2015 17:18:43 -0600 Subject: [PATCH] drivers/mtd/smart.c: Fix a compile error when CONFIG_MTD_SMART_MINIMIZE_RAM=y --- drivers/mtd/smart.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/mtd/smart.c b/drivers/mtd/smart.c index 6ea69cb040..c82a3af112 100644 --- a/drivers/mtd/smart.c +++ b/drivers/mtd/smart.c @@ -3951,7 +3951,7 @@ static inline int smart_read_wearstatus(FAR struct smart_struct_s *dev) #ifndef CONFIG_MTD_SMART_MINIMIZE_RAM physsector = dev->sMap[req.logsector]; #else - physsector = smart_cache_lookup(dev, req->logsector); + physsector = smart_cache_lookup(dev, req.logsector); #endif if ((sector != 0) && (physsector == 0xFFFF)) {