drivers/mtd/smart.c: Fix a compile error when CONFIG_MTD_SMART_MINIMIZE_RAM=y

This commit is contained in:
Gregory Nutt 2015-11-22 17:18:43 -06:00
parent 891589b307
commit 289b3e281f

View File

@ -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))
{