mirror of
https://github.com/apache/nuttx.git
synced 2026-06-06 16:50:55 +08:00
rwbuffer, fix compiler error
This commit is contained in:
+1
-1
@@ -970,7 +970,7 @@ int rwb_mediaremoved(FAR struct rwbuffer_s *rwb)
|
||||
#endif
|
||||
|
||||
#ifdef CONFIG_DRVR_READAHEAD
|
||||
if (rhmaxblocks > 0)
|
||||
if (rwb->rhmaxblocks > 0)
|
||||
{
|
||||
rwb_semtake(&rwb->rhsem);
|
||||
rwb_resetrhbuffer(rwb);
|
||||
|
||||
Reference in New Issue
Block a user