forked from Minki/linux
4f777d011b
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> |
||
---|---|---|
.. | ||
Kconfig | ||
Makefile | ||
pwc-ctrl.c | ||
pwc-dec1.c | ||
pwc-dec1.h | ||
pwc-dec23.c | ||
pwc-dec23.h | ||
pwc-if.c | ||
pwc-kiara.c | ||
pwc-kiara.h | ||
pwc-misc.c | ||
pwc-nala.h | ||
pwc-timon.c | ||
pwc-timon.h | ||
pwc-uncompress.c | ||
pwc-v4l.c | ||
pwc.h |