summaryrefslogtreecommitdiff
path: root/block
diff options
context:
space:
mode:
authorZicheng Qu <quzicheng@huawei.com>2024-10-31 01:45:05 +0000
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2024-12-05 14:02:55 +0100
commit14d85fb8a13ef8fa6e2bc2a697bfffcd3a5648c5 (patch)
tree4564dd15d2d371436675a45bf64ad2666bfc020e /block
parent701e32900683378d93693fec15d133e2c5f7ada2 (diff)
downloadlinux-14d85fb8a13ef8fa6e2bc2a697bfffcd3a5648c5.tar.gz
linux-14d85fb8a13ef8fa6e2bc2a697bfffcd3a5648c5.tar.bz2
linux-14d85fb8a13ef8fa6e2bc2a697bfffcd3a5648c5.zip
iio: gts: Fix uninitialized symbol 'ret'
commit e2fb2f89faf87b681038475d093214f4cbe12ebb upstream. 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> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'block')
0 files changed, 0 insertions, 0 deletions