From: Gabriele Mazzotta Date: Sat, 2 May 2015 12:31:16 +0000 (+0200) Subject: iio: kfifo: Set update_needed to false only if a buffer was allocated X-Git-Tag: omap-for-v4.2/soc-pt1-take2~6^2^2~5 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=e5f1efb9ae71bbb79629d660dc19b51ce7b95439;p=pandora-kernel.git 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 Signed-off-by: Jonathan Cameron --- Reading git-diff-tree failed