]> git.baikalelectronics.ru Git - kernel.git/commit
media: saa7134: avoid a shift overflow
authorMauro Carvalho Chehab <mchehab+huawei@kernel.org>
Wed, 2 Sep 2020 06:37:12 +0000 (08:37 +0200)
committerMauro Carvalho Chehab <mchehab+huawei@kernel.org>
Thu, 3 Sep 2020 09:16:13 +0000 (11:16 +0200)
commita52d80c8ce33b5d35033bb349b7ba7f45ebf2f52
treeecda15386a77a783b44675e1f70d7b34f511fdfc
parentaf5500ad992cab19b1dde4f88c48e35a7cdd2f76
media: saa7134: avoid a shift overflow

As reported by smatch:
drivers/media/pci/saa7134//saa7134-tvaudio.c:686 saa_dsp_writel() warn: should 'reg << 2' be a 64 bit type?

On a 64-bits Kernel, the shift might be bigger than 32 bits.

In real, this should never happen, but let's shut up the warning.

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