[media] st-delta: mjpeg: fix static checker warning
authorHugues Fruchet <hugues.fruchet@st.com>
Tue, 21 Feb 2017 08:12:52 +0000 (05:12 -0300)
committerMauro Carvalho Chehab <mchehab@s-opensource.com>
Wed, 5 Apr 2017 18:04:06 +0000 (15:04 -0300)
commit946c41af8fad4140d3721f736679c417ae5bc21a
treeb1e57d47b95967f8f91c34901701591f8e4fdf6e
parent51bb3fd788cb6be773d1d4ede43b18bcc053bb2f
[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>
drivers/media/platform/sti/delta/delta-mjpeg-dec.c