linux_dsm_epyc7002/drivers/media/usb
Mauro Carvalho Chehab 4f777d011b media: pwc-ctl: pChoose can't be NULL
The way the code works, compression will be a valid value (less or equal to 3)
on both set_video_mode_foo() calls at the beginning of the while() loop.

So, the value for pChoose can't be NULL.

Solves those smatch warnings:

	drivers/media/usb/pwc/pwc-ctrl.c: drivers/media/usb/pwc/pwc-ctrl.c:252 set_video_mode_Timon() warn: variable dereferenced before check 'pChoose' (see line 248)
	drivers/media/usb/pwc/pwc-ctrl.c: drivers/media/usb/pwc/pwc-ctrl.c:302 set_video_mode_Kiara() warn: variable dereferenced before check 'pChoose' (see line 298)

and simplifies the code a little bit.

Signed-off-by: Mauro Carvalho Chehab <mchehab+samsung@kernel.org>
2019-03-25 18:02:27 -04:00
..
airspy media: Kconfig files: use the right help coding style 2019-03-20 06:47:51 -04:00
as102 media: fix usage of whitespaces and on indentation 2018-01-04 13:12:01 -05:00
au0828 media: Kconfig files: use the right help coding style 2019-03-20 06:47:51 -04:00
b2c2 media: move dvb kAPI headers to include/media 2017-12-28 13:16:01 -05:00
cpia2 media: Kconfig files: use the right help coding style 2019-03-20 06:47:51 -04:00
cx231xx media: Kconfig files: use the right help coding style 2019-03-20 06:47:51 -04:00
dvb-usb media: usb: fix several typos 2019-03-01 09:43:27 -05:00
dvb-usb-v2 media: dvb: Add support for the Avermedia TD310 2019-03-19 16:52:51 -04:00
em28xx media: Kconfig files: use the right help coding style 2019-03-20 06:47:51 -04:00
go7007 media: Kconfig files: use the right help coding style 2019-03-20 06:47:51 -04:00
gspca media: Kconfig files: use the right help coding style 2019-03-20 06:47:51 -04:00
hackrf media: Kconfig files: use the right help coding style 2019-03-20 06:47:51 -04:00
hdpvr media: Kconfig files: use the right help coding style 2019-03-20 06:47:51 -04:00
msi2500 media updates for v4.20-rc1 2018-10-31 10:53:29 -07:00
pulse8-cec media: Kconfig files: use the right help coding style 2019-03-20 06:47:51 -04:00
pvrusb2 media: Kconfig files: use the right help coding style 2019-03-20 06:47:51 -04:00
pwc media: pwc-ctl: pChoose can't be NULL 2019-03-25 18:02:27 -04:00
rainshadow-cec media: Kconfig files: use the right help coding style 2019-03-20 06:47:51 -04:00
s2255 media: use strscpy() instead of strlcpy() 2018-09-11 13:32:17 -04:00
siano media: Kconfig files: use the right help coding style 2019-03-20 06:47:51 -04:00
stk1160 media: Kconfig files: use the right help coding style 2019-03-20 06:47:51 -04:00
stkwebcam media: Kconfig files: use the right help coding style 2019-03-20 06:47:51 -04:00
tm6000 media: Kconfig files: use the right help coding style 2019-03-20 06:47:51 -04:00
ttusb-budget media: usb: fix several typos 2019-03-01 09:43:27 -05:00
ttusb-dec media: usb: fix several typos 2019-03-01 09:43:27 -05:00
usbtv media: Kconfig files: use the right help coding style 2019-03-20 06:47:51 -04:00
usbvision media: Kconfig files: use the right help coding style 2019-03-20 06:47:51 -04:00
uvc media: Kconfig files: use the right help coding style 2019-03-20 06:47:51 -04:00
zr364xx media: Kconfig files: use the right help coding style 2019-03-20 06:47:51 -04:00
Kconfig [media] rainshadow-cec: new RainShadow Tech HDMI CEC driver 2017-04-10 12:42:10 -03:00
Makefile License cleanup: add SPDX GPL-2.0 license identifier to files with no license 2017-11-02 11:10:55 +01:00