[media] cx88: Remove duplicate const
authorEmil Goode <emilgoode@gmail.com>
Fri, 4 May 2012 08:33:37 +0000 (05:33 -0300)
committerMauro Carvalho Chehab <mchehab@redhat.com>
Mon, 13 Aug 2012 22:47:56 +0000 (19:47 -0300)
commitd9bc8510c5fb55ce7092ebc928c0791e738ea5ae
treefdf1b7b5b3c6ca84b04260cff7bfdf8e11ceb14d
parent0d27bbfe81cb087748dc1511683bd3e7335a7da5
[media] cx88: Remove duplicate const

This patch fixes the following sparse warnings
by removing use of duplicate const.

drivers/media/video/cx88/cx88.h:152:40:
warning: duplicate const
drivers/media/video/cx88/cx88-core.c:256:33:
warning: duplicate const
drivers/media/video/cx88/cx88-alsa.c:769:41:
warning: duplicate const

As commented by Jonathan Nieder:

These double "const" were introduced in v2.6.37-rc1~64^2~464 (V4L/DVB:
drivers/media: Make static data tables and strings const, 2010-08-25).

The address of an array is already immutable by definition, so for
what it's worth, with or without a clarified commit message,

[mchehab@redhat.com: Tested with "gcc -s" (version 4.7.0):
 the produced asm is indeed equal before and after this patch]
Signed-off-by: Emil Goode <emilgoode@gmail.com>
Acked-by: Jonathan Nieder <jrnieder@gmail.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
drivers/media/video/cx88/cx88-alsa.c
drivers/media/video/cx88/cx88-core.c
drivers/media/video/cx88/cx88.h