drivers/rwbuffer: Set nblocks 0 after using wrflush(skip rwbuffer)
Signed-off-by: zhangshoukui <zhangshoukui@xiaomi.com> Signed-off-by: dongjiuzhu1 <dongjiuzhu1@xiaomi.com>
This commit is contained in:
parent
cd15d37396
commit
1413fc0c1b
1 changed files with 2 additions and 0 deletions
|
@ -334,6 +334,8 @@ static ssize_t rwb_writebuffer(FAR struct rwbuffer_s *rwb,
|
|||
{
|
||||
return ret;
|
||||
}
|
||||
|
||||
nblocks = 0;
|
||||
}
|
||||
|
||||
while (nblocks > 0)
|
||||
|
|
Loading…
Reference in a new issue