drivers/mtd/smart.c: Fix a compile error when CONFIG_MTD_SMART_MINIMIZE_RAM=y
This commit is contained in:
parent
891589b307
commit
289b3e281f
1 changed files with 1 additions and 1 deletions
|
|
@ -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))
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue