]> www.infradead.org Git - users/dwmw2/linux.git/commit
media: av7110_v4l: avoid a typecast
authorMauro Carvalho Chehab <mchehab+huawei@kernel.org>
Tue, 1 Sep 2020 09:46:12 +0000 (11:46 +0200)
committerMauro Carvalho Chehab <mchehab+huawei@kernel.org>
Thu, 3 Sep 2020 09:08:20 +0000 (11:08 +0200)
commit13c129066845dc6b81f5e13ddaf854b053a9490f
treecb8e7a00147ff357f3dc583c3d3995206ac7b1d1
parent7a9b56123a036483d3b26bbd37d0dab4ca4c9eae
media: av7110_v4l: avoid a typecast

While smatch reports an issue there:

drivers/media/pci/ttpci/av7110_v4l.c:163 ves1820_set_tv_freq() warn: unsigned 'freq' is never less than zero.
drivers/media/pci/ttpci/av7110_v4l.c:165 ves1820_set_tv_freq() warn: unsigned 'freq' is never less than zero.

The logic is actually fine. Yet, removing the typecast
shuts up smatch and makes the code more readable.

Signed-off-by: Mauro Carvalho Chehab <mchehab+huawei@kernel.org>
drivers/media/pci/ttpci/av7110_v4l.c