diff options
author | 2024-10-31 01:45:05 +0000 | |
---|---|---|
committer | 2024-10-31 21:47:23 +0000 | |
commit | e2fb2f89faf87b681038475d093214f4cbe12ebb (patch) | |
tree | 0929abc9fc3c885584080afa3e0cf365eb668df6 /tools/perf/scripts/python/export-to-postgresql.py | |
parent | iio: adc: ad4000: fix reading unsigned data (diff) | |
download | wireguard-linux-e2fb2f89faf87b681038475d093214f4cbe12ebb.tar.xz wireguard-linux-e2fb2f89faf87b681038475d093214f4cbe12ebb.zip |
iio: gts: Fix uninitialized symbol 'ret'
Initialize the variable ret at the time of declaration to prevent it from
being returned without a defined value. Fixes smatch warning:
drivers/iio/industrialio-gts-helper.c:256 gain_to_scaletables() error:
uninitialized symbol 'ret'.
Cc: stable@vger.kernel.org # v6.6+
Fixes: 38416c28e168 ("iio: light: Add gain-time-scale helpers")
Signed-off-by: Zicheng Qu <quzicheng@huawei.com>
Reviewed-by: Matti Vaittinen <mazziesaccount@gmail.com>
Link: https://patch.msgid.link/20241031014505.2313035-1-quzicheng@huawei.com
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
Diffstat (limited to 'tools/perf/scripts/python/export-to-postgresql.py')
0 files changed, 0 insertions, 0 deletions