mirror of
https://github.com/apache/nuttx.git
synced 2026-05-22 22:20:01 +08:00
drivers/mtd/smart.c: Fix a compile error when CONFIG_MTD_SMART_MINIMIZE_RAM=y
This commit is contained in:
+1
-1
@@ -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))
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user