linux/drivers/media/test-drivers/vidtv
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
..
Kconfig
Makefile media: vidtv: add a bridge driver 2020-09-12 09:43:12 +02:00
vidtv_bridge.c media: vidtv: cleanup the logic which estimates buffer size 2020-09-17 12:03:18 +02:00
vidtv_bridge.h media: vidtv: increment byte and block counters 2020-09-14 16:02:55 +02:00
vidtv_channel.c media: vidtv: prefer using dev_foo() instead of pr_foo() 2020-09-14 15:47:51 +02:00
vidtv_channel.h media: vidtv: add a bridge driver 2020-09-12 09:43:12 +02:00
vidtv_common.c media: vidtv: fix 32-bit warnings 2020-09-14 15:48:11 +02:00
vidtv_common.h media: vidtv: add a bridge driver 2020-09-12 09:43:12 +02:00
vidtv_demod.c media: vidtv: add DiSEqC dummy ops 2020-09-17 12:00:19 +02:00
vidtv_demod.h media: vidtv: get rid of the work queue 2020-09-14 16:02:54 +02:00
vidtv_encoder.h media: vidtv: fix build on 32bit architectures 2020-09-17 12:02:58 +02:00
vidtv_mux.c media: vidtv: fix build on 32bit architectures 2020-09-17 12:02:58 +02:00
vidtv_mux.h media: vidtv: increment byte and block counters 2020-09-14 16:02:55 +02:00
vidtv_pes.c media: vidtv: fix 32-bit warnings 2020-09-14 15:48:11 +02:00
vidtv_pes.h media: vidtv: add a bridge driver 2020-09-12 09:43:12 +02:00
vidtv_psi.c media: vidtv: remove an impossible condition 2020-09-17 12:03:36 +02:00
vidtv_psi.h media: vidtv: get rid of ENDIAN_BITFIELD nonsense 2020-09-14 15:48:48 +02:00
vidtv_s302m.c media: vidtv: fix build on 32bit architectures 2020-09-17 12:02:58 +02:00
vidtv_s302m.h media: vidtv: fix build on 32bit architectures 2020-09-17 12:02:58 +02:00
vidtv_ts.c media: vidtv: add a bridge driver 2020-09-12 09:43:12 +02:00
vidtv_ts.h media: vidtv: get rid of ENDIAN_BITFIELD nonsense 2020-09-14 15:48:48 +02:00
vidtv_tuner.c media: vidtv: add basic support for DVBv5 stats 2020-09-14 16:02:54 +02:00
vidtv_tuner.h