Skip to content

Commit

Permalink
[media] davinci: dm355: Fix uninitialized variable compiler warnings
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Lad, Prabhakar authored and Mauro Carvalho Chehab committed Feb 5, 2013
1 parent c7a857a commit b9f1fbc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/media/platform/davinci/dm355_ccdc.c
Original file line number Diff line number Diff line change
Expand Up @@ -557,7 +557,7 @@ static int ccdc_config_vdfc(struct ccdc_vertical_dft *dfc)
*/
static void ccdc_config_csc(struct ccdc_csc *csc)
{
u32 val1, val2;
u32 val1 = 0, val2;
int i;

if (!csc->enable)
Expand Down

0 comments on commit b9f1fbc

Please sign in to comment.