mirror of
https://mirrors.bfsu.edu.cn/git/linux.git
synced 2024-12-06 02:24:14 +08:00
9e76f2cff7
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> |
||
---|---|---|
.. | ||
Kconfig | ||
Makefile | ||
vidtv_bridge.c | ||
vidtv_bridge.h | ||
vidtv_channel.c | ||
vidtv_channel.h | ||
vidtv_common.c | ||
vidtv_common.h | ||
vidtv_demod.c | ||
vidtv_demod.h | ||
vidtv_encoder.h | ||
vidtv_mux.c | ||
vidtv_mux.h | ||
vidtv_pes.c | ||
vidtv_pes.h | ||
vidtv_psi.c | ||
vidtv_psi.h | ||
vidtv_s302m.c | ||
vidtv_s302m.h | ||
vidtv_ts.c | ||
vidtv_ts.h | ||
vidtv_tuner.c | ||
vidtv_tuner.h |