aboutsummaryrefslogtreecommitdiffstats
path: root/arch/x86/include/asm/cpu.h
diff options
context:
space:
mode:
authorMauro Carvalho Chehab <mchehab+huawei@kernel.org>2020-09-17 11:48:17 +0200
committerMauro Carvalho Chehab <mchehab+huawei@kernel.org>2020-09-17 12:03:36 +0200
commit9e76f2cff7a17af92c819ca0489ec5399f8367f7 (patch)
tree4db356952da52e0f9491deaf2169880036a3c2c2 /arch/x86/include/asm/cpu.h
parentad458524b3fa2cef0b322984591bbdfd527367c3 (diff)
media: vidtv: remove an impossible conditionHEADmaster
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>
Diffstat (limited to 'arch/x86/include/asm/cpu.h')
0 files changed, 0 insertions, 0 deletions

Privacy Policy