]> git.baikalelectronics.ru Git - kernel.git/commit
media: dvb-bt8xx: Make variable dst_config constant
authorNishka Dasgupta <nishkadg.linux@gmail.com>
Mon, 19 Aug 2019 07:35:42 +0000 (04:35 -0300)
committerMauro Carvalho Chehab <mchehab+samsung@kernel.org>
Wed, 21 Aug 2019 21:39:55 +0000 (18:39 -0300)
commit8874bbf40dd9a7e570f5410417eb2b1aa80c9d74
tree9c8cce1716b2827938cef5fed53ff9be4c75cac9
parent4a4b2e00901e1f6b2e088d877a067e8b6d6141e5
media: dvb-bt8xx: Make variable dst_config constant

Static structure dst_config, of type dst_config, is not used except to
be assigned as the value of field state of a variable having type
dst_state *. In the definition of dst_state, field config is declared as
const. Hence dst_config, when assigned to config, cannot be modified.
Therefore, make dst_config const as well.
Issue found with Coccinelle.

Signed-off-by: Nishka Dasgupta <nishkadg.linux@gmail.com>
Signed-off-by: Sean Young <sean@mess.org>
Signed-off-by: Mauro Carvalho Chehab <mchehab+samsung@kernel.org>
drivers/media/pci/bt8xx/dvb-bt8xx.c