aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/media
diff options
context:
space:
mode:
authorLad, Prabhakar <prabhakar.lad@ti.com>2013-01-02 06:37:41 -0500
committerMauro Carvalho Chehab <mchehab@redhat.com>2013-02-05 11:09:55 -0500
commitb9f1fbcd0e9b7ab96876a9e53cbea4d2e279e82c (patch)
tree84f67a25e7889456cc070fc27ee6173df2147ce2 /drivers/media
parentc7a857a09f1f00e6cb04c6565c136a9f0018532d (diff)
[media] davinci: dm355: Fix uninitialized variable compiler warnings
drivers/media/platform/davinci/dm355_ccdc.c:593:9: warning: ‘val1’ may be used uninitialized in this function [-Wuninitialized] drivers/media/platform/davinci/dm355_ccdc.c:560:6: note: ‘val1’ was declared here This is a false positive but the compiler has no way to know about it, so initialize the variable to 0. Signed-off-by: Lad, Prabhakar <prabhakar.lad@ti.com> Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
Diffstat (limited to 'drivers/media')
-rw-r--r--drivers/media/platform/davinci/dm355_ccdc.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/media/platform/davinci/dm355_ccdc.c b/drivers/media/platform/davinci/dm355_ccdc.c
index f263cabade7a..4277e4ad810c 100644
--- a/drivers/media/platform/davinci/dm355_ccdc.c
+++ b/drivers/media/platform/davinci/dm355_ccdc.c
@@ -557,7 +557,7 @@ static int ccdc_config_vdfc(struct ccdc_vertical_dft *dfc)
557 */ 557 */
558static void ccdc_config_csc(struct ccdc_csc *csc) 558static void ccdc_config_csc(struct ccdc_csc *csc)
559{ 559{
560 u32 val1, val2; 560 u32 val1 = 0, val2;
561 int i; 561 int i;
562 562
563 if (!csc->enable) 563 if (!csc->enable)