rwbuffer, fix compiler error

This commit is contained in:
Gregory Nutt 2014-11-05 15:26:48 -06:00
parent 67f8002de9
commit b99db64f15

View File

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