diff options
author | 2021-10-15 16:32:54 +0100 | |
---|---|---|
committer | 2021-10-20 14:43:51 +0100 | |
commit | eeb82b54bb03a0899505996e8da7d67b4ff4aec2 (patch) | |
tree | 7b5e44ede776e8e7c8be781f2278a0f90ea823fe /tools/perf/scripts/python/exported-sql-viewer.py | |
parent | iio: adc: lpc18xx_adc: Convert probe to device managed version (diff) | |
download | linux-dev-eeb82b54bb03a0899505996e8da7d67b4ff4aec2.tar.xz linux-dev-eeb82b54bb03a0899505996e8da7d67b4ff4aec2.zip |
iio: buffer: Fix uninitialized variable ret
When !iio_buffer_space_available(rb) is true and signal_pending(current)
is false the end of the do-while loop is reached and the uninitialized
variable ret is zero checked. Fix this by initializing variable ret to
zero.
Addresses-Coverity: ("Uninitialized scalar variable")
Fixes: 9eeee3b0bf19 ("iio: Add output buffer support")
Signed-off-by: Colin Ian King <colin.king@canonical.com>
Link: https://lore.kernel.org/r/20211015153254.33783-1-colin.king@canonical.com
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
Diffstat (limited to 'tools/perf/scripts/python/exported-sql-viewer.py')
0 files changed, 0 insertions, 0 deletions