summaryrefslogtreecommitdiff
path: root/kernel
diff options
context:
space:
mode:
authorColin Ian King <colin.king@canonical.com>2016-09-05 15:39:06 +0100
committerJonathan Cameron <jic23@kernel.org>2016-09-05 21:00:14 +0100
commit5dba4b14bafe801083d01e1f400816df7e5a8f2e (patch)
tree96fafd56a772bf8f6d7ea6c562b484f92e091552 /kernel
parent307fe9dd11ae44d4f8881ee449a7cbac36e1f5de (diff)
iio: ensure ret is initialized to zero before entering do loop
A recent fix to iio_buffer_read_first_n_outer removed ret from being set by a return from wait_event_interruptible and also added a continue in a loop which causes the variable ret to not be set when it reaches the end of the loop. Fix this by initializing ret to zero. Also remove extraneous white space at the end of the loop. Fixes: fcf68f3c0bb2a5 ("fix sched WARNING "do not call blocking ops when !TASK_RUNNING") Signed-off-by: Colin Ian King <colin.king@canonical.com> Cc: <Stable@vger.kernel.org> Signed-off-by: Jonathan Cameron <jic23@kernel.org>
Diffstat (limited to 'kernel')
0 files changed, 0 insertions, 0 deletions