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:
zhangshoukui 2024-08-29 20:40:54 +08:00 committed by Xiang Xiao
parent cd15d37396
commit 1413fc0c1b

View file

@ -334,6 +334,8 @@ static ssize_t rwb_writebuffer(FAR struct rwbuffer_s *rwb,
{
return ret;
}
nblocks = 0;
}
while (nblocks > 0)