V4L/DVB (3500): Ringbuffer: don't reset pointers to zero

Oliver Endriss spotted, that resetting read and write pointers on
flush() requires additional locking and breaks the av7110 driver.
Therefore this patch partially reverts the previous patch titled "make
dvb_ringbuffer compatible to dmxdev_buffer".

Signed-off-by: Andreas Oberritter <obi@linuxtv.org>
Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
This commit is contained in:
Andreas Oberritter 2006-03-14 17:30:09 -03:00 committed by Linus Torvalds
parent 19478843e4
commit 4304954eb6
1 changed files with 1 additions and 1 deletions

View File

@ -87,7 +87,7 @@ ssize_t dvb_ringbuffer_avail(struct dvb_ringbuffer *rbuf)
void dvb_ringbuffer_flush(struct dvb_ringbuffer *rbuf)
{
rbuf->pread = rbuf->pwrite = 0;
rbuf->pread = rbuf->pwrite;
rbuf->error = 0;
}