linux/drivers/media/test-drivers
Mauro Carvalho Chehab 9e76f2cff7 media: vidtv: remove an impossible condition
As warned by smatch:

	drivers/media/test-drivers/vidtv/vidtv_psi.c:93 vidtv_psi_update_version_num() warn: impossible condition '(h->version > 32) => (0-31 > 32)'

h_version is declared as:

		u8  version:5;

Meaning that its value ranges from 0 to 31. Incrementing 31 on such
data will overflow to zero, as expected.

So, just drop the uneeded overflow check.

While here, use "foo++" instead of "++foo", as this is a much
more common pattern.

Signed-off-by: Mauro Carvalho Chehab <mchehab+huawei@kernel.org>
2020-09-17 12:03:36 +02:00
..
vicodec Linux 5.9-rc4 2020-09-07 16:13:06 +02:00
vidtv media: vidtv: remove an impossible condition 2020-09-17 12:03:36 +02:00
vimc media: media/test-drivers: use vb2_video_unregister_device() 2020-08-28 15:05:40 +02:00
vivid media: vivid: fix compile warning/error 2020-09-08 11:54:00 +02:00
Kconfig media: media/test-drivers/Kconfig: fix broken Kconfig 2020-09-12 10:21:01 +02:00
Makefile media: vidtv: implement a tuner driver 2020-09-12 09:42:16 +02:00
vim2m.c