From f3d83a101266ffa0bcb0744a0d33de823a584845 Mon Sep 17 00:00:00 2001 From: Jacek Anaszewski Date: Fri, 10 Oct 2014 05:46:49 -0300 Subject: [PATCH] [media] s5p-jpeg: Avoid -Wuninitialized warning in s5p_jpeg_parse_hdr Initialize components variable in order to avoid the possibility of using it uninitialized. Signed-off-by: Jacek Anaszewski Signed-off-by: Sylwester Nawrocki Signed-off-by: Mauro Carvalho Chehab --- drivers/media/platform/s5p-jpeg/jpeg-core.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/media/platform/s5p-jpeg/jpeg-core.c b/drivers/media/platform/s5p-jpeg/jpeg-core.c index ec7339e84b57..6fcc7f072ace 100644 --- a/drivers/media/platform/s5p-jpeg/jpeg-core.c +++ b/drivers/media/platform/s5p-jpeg/jpeg-core.c @@ -893,7 +893,7 @@ static bool s5p_jpeg_parse_hdr(struct s5p_jpeg_q_data *result, unsigned long buffer, unsigned long size, struct s5p_jpeg_ctx *ctx) { - int c, components, notfound; + int c, components = 0, notfound; unsigned int height, width, word, subsampling = 0; long length; struct s5p_jpeg_buffer jpeg_buffer; -- 2.20.1