linux/drivers/iio/proximity
Aashish Sharma 70171ed6dc iio:proximity:sx9324: Check ret value of device_property_read_u32_array()
0-day reports:

drivers/iio/proximity/sx9324.c:868:3: warning: Value stored
to 'ret' is never read [clang-analyzer-deadcode.DeadStores]

Put an if condition to break out of switch if ret is non-zero.

Signed-off-by: Aashish Sharma <shraash@google.com>
Fixes: a8ee3b32f5 ("iio:proximity:sx9324: Add dt_binding support")
Reported-by: kernel test robot <lkp@intel.com>
[swboyd@chromium.org: Reword commit subject, add fixes tag]
Signed-off-by: Stephen Boyd <swboyd@chromium.org>
Reviewed-by: Gwendal Grignou <gwendal@chromium.org>
Link: https://lore.kernel.org/r/20220613232224.2466278-1-swboyd@chromium.org
Cc: <Stable@vger.kernel.org>
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
2022-06-19 17:22:49 +01:00
..
as3935.c iio:proximity:as3935: Switch from CONFIG_PM_SLEEP guards to pm_sleep_ptr() etc 2022-02-18 11:46:03 +00:00
cros_ec_mkbp_proximity.c iio: proximity: Add a ChromeOS EC MKBP proximity driver 2021-03-25 19:13:50 +00:00
isl29501.c iio: prox: isl29501: Fix buffer alignment in iio_push_to_buffers_with_timestamp() 2021-06-16 14:53:13 +01:00
Kconfig iio:proximity:sx9360: Add sx9360 support 2022-01-23 18:03:33 +00:00
Makefile iio:proximity:sx9360: Add sx9360 support 2022-01-23 18:03:33 +00:00
mb1232.c iio:proximity:mb1232: Fix timestamp alignment and prevent data leak. 2020-08-22 11:38:54 +01:00
ping.c iio:proximity:ping: White space cleanup of spacing around {} in id tables 2022-01-23 18:03:34 +00:00
pulsedlight-lidar-lite-v2.c iio:proximity:pulsedlight: Switch from CONFIG_PM guards to pm_ptr() etc 2022-02-21 19:33:04 +00:00
rfd77402.c iio:proximity:rfd77492: Switch from CONFIG_PM_SLEEP guards to pm_sleep_ptr() etc 2022-02-18 11:46:03 +00:00
srf04.c iio:proximity:srf04: White space cleanup of spacing around {} in id tables 2022-01-23 18:03:34 +00:00
srf08.c iio:proximity:srf08: White space cleanup of spacing around {} in id tables 2022-01-23 18:03:34 +00:00
sx9310.c iio:proximity:sx9310: Extract common Semtech sensor logic 2022-01-23 18:03:33 +00:00
sx9324.c iio:proximity:sx9324: Check ret value of device_property_read_u32_array() 2022-06-19 17:22:49 +01:00
sx9360.c iio: sx9360: fix iio event generation 2022-01-30 12:39:16 +00:00
sx9500.c iio:proximity:sx9500: Switch from CONFIG_PM_SLEEP guards to pm_sleep_ptr() etc 2022-02-18 11:46:03 +00:00
sx_common.c iio:proximity:sx_common: Fix device property parsing on DT systems 2022-04-04 09:19:01 +01:00
sx_common.h iio:proximity:sx9310: Extract common Semtech sensor logic 2022-01-23 18:03:33 +00:00
vcnl3020.c iio: proximity: vcnl3020: remove iio_claim/release_direct 2021-07-24 16:07:17 +01:00
vl53l0x-i2c.c iio:proximity:vl53l0x: Tidy up white space around {} in id tables 2022-01-23 18:03:35 +00:00