summaryrefslogtreecommitdiff
path: root/drivers/media/platform/sti
diff options
context:
space:
mode:
authorHugues Fruchet <hugues.fruchet@st.com>2017-02-21 11:12:52 +0300
committerMauro Carvalho Chehab <mchehab@s-opensource.com>2017-04-05 21:04:06 +0300
commit946c41af8fad4140d3721f736679c417ae5bc21a (patch)
treeb1e57d47b95967f8f91c34901701591f8e4fdf6e /drivers/media/platform/sti
parent51bb3fd788cb6be773d1d4ede43b18bcc053bb2f (diff)
downloadlinux-946c41af8fad4140d3721f736679c417ae5bc21a.tar.xz
[media] st-delta: mjpeg: fix static checker warning
Initialize 'data_offset' local variable to 0. drivers/media/platform/sti/delta/delta-mjpeg-dec.c:415 delta_mjpeg_decode() error: uninitialized symbol 'data_offset'. Fixes: 433ff5b4a29b: "[media] st-delta: add mjpeg support" Signed-off-by: Hugues Fruchet <hugues.fruchet@st.com> Signed-off-by: Hans Verkuil <hansverk@cisco.com> Signed-off-by: Mauro Carvalho Chehab <mchehab@s-opensource.com>
Diffstat (limited to 'drivers/media/platform/sti')
-rw-r--r--drivers/media/platform/sti/delta/delta-mjpeg-dec.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/media/platform/sti/delta/delta-mjpeg-dec.c b/drivers/media/platform/sti/delta/delta-mjpeg-dec.c
index e79bdc611432..84ea43c0eb46 100644
--- a/drivers/media/platform/sti/delta/delta-mjpeg-dec.c
+++ b/drivers/media/platform/sti/delta/delta-mjpeg-dec.c
@@ -375,7 +375,7 @@ static int delta_mjpeg_decode(struct delta_ctx *pctx, struct delta_au *pau)
struct delta_mjpeg_ctx *ctx = to_ctx(pctx);
int ret;
struct delta_au au = *pau;
- unsigned int data_offset;
+ unsigned int data_offset = 0;
struct mjpeg_header *header = &ctx->header_struct;
if (!ctx->header) {