linux-stable/drivers/media
Tomi Valkeinen 1cf8ddccbd media: i2c: ds90ub953: Fix use of uninitialized variables
smatch reports some uninitialized variables:

drivers/media/i2c/ds90ub953.c:655 ub953_log_status() error: uninitialized symbol 'gpio_local_data'.
drivers/media/i2c/ds90ub953.c:655 ub953_log_status() error: uninitialized symbol 'gpio_input_ctrl'.
drivers/media/i2c/ds90ub953.c:655 ub953_log_status() error: uninitialized symbol 'gpio_pin_sts'.

These are used only for printing debug information, and the use of an
uninitialized variable only happens if an i2c transaction has failed,
which will print an error. Thus, fix the errors just by initializing the
variables to 0.

Closes: https://lore.kernel.org/all/8d6daeb1-b62a-bbb2-b840-8759c84f2085@xs4all.nl/

Fixes: 6363db1c9d ("media: i2c: add DS90UB953 driver")
Reported-by: Hans Verkuil <hverkuil@xs4all.nl>
Signed-off-by: Tomi Valkeinen <tomi.valkeinen@ideasonboard.com>
Signed-off-by: Sakari Ailus <sakari.ailus@linux.intel.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@kernel.org>
2023-08-14 20:27:58 +02:00
..
cec media: tegra_cec: fix the return value handle for platform_get_irq() 2023-08-10 07:58:36 +02:00
common drivers/media/common/siano/smsendian.c : eliminate unnecessary type conversions 2023-07-19 12:57:46 +02:00
dvb-core media updates for v6.5-rc1 2023-07-05 10:42:32 -07:00
dvb-frontends media: dvb: mb86a16: check the return value of mb86a16_read() 2023-08-10 07:58:36 +02:00
firewire media: firewire: firedtv-avc.c: replace BUG with proper, error return 2023-08-10 07:58:37 +02:00
i2c media: i2c: ds90ub953: Fix use of uninitialized variables 2023-08-14 20:27:58 +02:00
mc media: mc: Make media_get_pad_index() use pad type flag 2023-05-25 16:21:22 +02:00
mmc
pci media: ipu-bridge: Add link-frequency to OV2680 ipu_supported_sensors[] entry 2023-08-14 20:27:58 +02:00
platform media: platform: ti: fix the return value handle for platform_get_irq() 2023-08-14 20:27:55 +02:00
radio media: wl128x: Fix spelling mistake "Transfered" -> "Transferred" 2023-07-19 12:57:48 +02:00
rc media: Explicitly include correct DT includes 2023-07-19 12:57:51 +02:00
spi
test-drivers media: Remove flag FBINFO_FLAG_DEFAULT from fbdev drivers 2023-07-25 09:24:30 +02:00
tuners media: tuners: qt1010: replace BUG_ON with a regular error 2023-07-25 09:24:30 +02:00
usb media: usb: pvrusb2: fix inconsistent indenting 2023-08-10 07:58:36 +02:00
v4l2-core media: v4l: async: Avoid a goto in loop implementation 2023-08-10 07:58:39 +02:00
Kconfig media: Kconfig: Make DVB_CORE=m possible when MEDIA_SUPPORT=y 2022-12-07 17:58:46 +01:00
Makefile