diff options
author | Lars-Peter Clausen <lars@metafoo.de> | 2013-10-15 10:30:00 +0200 |
---|---|---|
committer | Jonathan Cameron <jic23@kernel.org> | 2013-10-15 20:20:55 +0200 |
commit | cb6fbfa1387f47e5ef4ab2fac5ed71f3c1175f75 (patch) | |
tree | d6491a31ede7ec1e6253948b7d0d839d7f00b878 /drivers/iio/industrialio-buffer.c | |
parent | iio:kfifo: Empty buffer on update (diff) | |
download | linux-cb6fbfa1387f47e5ef4ab2fac5ed71f3c1175f75.tar.xz linux-cb6fbfa1387f47e5ef4ab2fac5ed71f3c1175f75.zip |
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>
Diffstat (limited to 'drivers/iio/industrialio-buffer.c')
0 files changed, 0 insertions, 0 deletions