]> git.baikalelectronics.ru Git - kernel.git/commit
iio: kfifo: Set update_needed to false only if a buffer was allocated
authorGabriele Mazzotta <gabriele.mzt@gmail.com>
Sat, 2 May 2015 12:31:16 +0000 (14:31 +0200)
committerJonathan Cameron <jic23@kernel.org>
Thu, 7 May 2015 22:36:58 +0000 (23:36 +0100)
commit882e79efefadc44667f10867e235c0a51204286c
treefb9414341e79faad10f508d0d19b18eb1db62e1f
parent58f2babb49544efbdef3948698b3bab6d85921a6
iio: kfifo: Set update_needed to false only if a buffer was allocated

Check whether the allocation of a new kfifo buffer failed or not before
setting the update_needed flag to false. This will make
iio_request_update_kfifo() try to allocate a new buffer the next time a
buffer update is requested.

Signed-off-by: Gabriele Mazzotta <gabriele.mzt@gmail.com>
Signed-off-by: Jonathan Cameron <jic23@kernel.org>
drivers/iio/kfifo_buf.c