iio:kfifo: Set update_needed to false after allocating a new buffer
authorLars-Peter Clausen <lars@metafoo.de>
Tue, 15 Oct 2013 08:30:00 +0000 (09:30 +0100)
committerJonathan Cameron <jic23@kernel.org>
Tue, 15 Oct 2013 18:20:55 +0000 (19:20 +0100)
commitcb6fbfa1387f47e5ef4ab2fac5ed71f3c1175f75
treed6491a31ede7ec1e6253948b7d0d839d7f00b878
parent5b78e5138e6a636d00fea08514bfc5a2ff5dfb15
iio:kfifo: Set update_needed to false after allocating a new buffer

update_needed is used to decide whether the kfifo buffer needs to be
re-allocated. It is set to true whenever the size of the buffer is changed. It
is never set to false though, causing the buffer to always be re-allocated.
Setting update_needed to false after the new buffer has been allocated fixes the
problem.

Signed-off-by: Lars-Peter Clausen <lars@metafoo.de>
Signed-off-by: Jonathan Cameron <jic23@kernel.org>
drivers/iio/kfifo_buf.c