linux-sg2042/drivers/media/usb/pwc
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
..
Kconfig media: Kconfig files: use the right help coding style 2019-03-20 06:47:51 -04:00
Makefile
pwc-ctrl.c media: pwc-ctl: pChoose can't be NULL 2019-03-25 18:02:27 -04:00
pwc-dec1.c
pwc-dec1.h
pwc-dec23.c media: usb: fix several typos 2019-03-01 09:43:27 -05:00
pwc-dec23.h
pwc-if.c media: usb: fix several typos 2019-03-01 09:43:27 -05:00
pwc-kiara.c
pwc-kiara.h
pwc-misc.c media: usb: fix several typos 2019-03-01 09:43:27 -05:00
pwc-nala.h License cleanup: add SPDX GPL-2.0 license identifier to files with no license 2017-11-02 11:10:55 +01:00
pwc-timon.c
pwc-timon.h
pwc-uncompress.c [media] media: videobuf2: Restructure vb2_buffer 2015-10-01 09:04:43 -03:00
pwc-v4l.c media: replace strcpy() by strscpy() 2018-09-11 13:32:17 -04:00
pwc.h media: replace all <spaces><tab> occurrences 2018-01-04 13:15:05 -05:00