summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJacek Anaszewski <j.anaszewski@samsung.com>2014-10-10 08:43:14 (GMT)
committerChanho Park <chanho61.park@samsung.com>2014-11-18 03:01:14 (GMT)
commit9df0344a8619aaaf702bad2719be9229ec467f50 (patch)
treecc75f2bbee3ddd9641119958a6335c0381b2d48c
parenta83ed34cc44d4b5872f16b2bd1a416541c06a57a (diff)
downloadlinux-3.10-9df0344a8619aaaf702bad2719be9229ec467f50.zip
linux-3.10-9df0344a8619aaaf702bad2719be9229ec467f50.tar.gz
linux-3.10-9df0344a8619aaaf702bad2719be9229ec467f50.tar.bz2
s5p-jpeg: Avoid -Wuninitialized warning in s5p_jpeg_parse_hdr
Initialize components variable in order to avoid the possibility of using it uninitialized. Change-Id: Ib1c9c11d1fc94aa5aa4e28f24819b32d6dd1ee5c Signed-off-by: Jacek Anaszewski <j.anaszewski@samsung.com>
-rw-r--r--drivers/media/platform/s5p-jpeg/jpeg-core.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/media/platform/s5p-jpeg/jpeg-core.c b/drivers/media/platform/s5p-jpeg/jpeg-core.c
index e66acbc..91dc351 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;