linux/drivers/media
Mauro Carvalho Chehab 7a9b56123a media: qt1010: fix usage of unititialized value
As pointed by smatch:

	drivers/media/tuners/qt1010.c:239 qt1010_init_meas1() error: uninitialized symbol 'val2'.
	drivers/media/tuners/qt1010.c:273 qt1010_init_meas2() error: uninitialized symbol 'val'.

The logic is ok, but it is hard for static analyzers
to parse it, as it depends on a value read in the middle
of a loop.

Also, it takes a while for humans to verify.

Re-write the first function to use a more direct way.

At the second one, I opted to just initialize the read var,
in order to shut up the report.

While here, address a few coding style issues at the
function code.

Signed-off-by: Mauro Carvalho Chehab <mchehab+huawei@kernel.org>
2020-09-03 11:07:57 +02:00
..
cec media: cec: no need to check return value of debugfs_create functions 2020-09-01 14:13:26 +02:00
common media: Use fallthrough pseudo-keyword 2020-08-29 08:35:27 +02:00
dvb-core media: videobuf2: add queue memory consistency parameter 2020-06-23 13:31:12 +02:00
dvb-frontends media: tda10086: cleanup symbol_rate setting logic 2020-09-03 11:07:28 +02:00
firewire media: firewire: Using uninitialized values in node_probe() 2020-07-04 11:57:10 +02:00
i2c media: ov5675: correct the maximum exposure value 2020-09-01 14:13:27 +02:00
mc media: mc-device.c: change media_device_request_alloc to match media_ioctl_info 2020-08-29 08:15:23 +02:00
mmc media updates for v5.8-rc1 2020-06-03 20:59:38 -07:00
pci saa7134: drop unnecessary list_empty 2020-09-01 13:37:53 +02:00
platform media: venus: Make debug infrastructure more flexible 2020-09-01 14:13:30 +02:00
radio media: radio: si476x: no need to check return value of debugfs_create functions 2020-09-01 14:13:26 +02:00
rc media: Use fallthrough pseudo-keyword 2020-08-29 08:35:27 +02:00
spi media: i2c/Kconfig: use sub-menus for I2C support 2020-04-16 10:34:40 +02:00
test-drivers media: Use fallthrough pseudo-keyword 2020-08-29 08:35:27 +02:00
tuners media: qt1010: fix usage of unititialized value 2020-09-03 11:07:57 +02:00
usb tm6000: drop unnecessary list_empty 2020-09-01 14:12:36 +02:00
v4l2-core media: v4l2-ctrl: Add frame-skip std encoder control 2020-09-01 14:13:29 +02:00
Kconfig media: media/test_drivers: rename to test-drivers 2020-04-16 10:38:31 +02:00
Makefile media: media/test_drivers: rename to test-drivers 2020-04-16 10:38:31 +02:00