media: s5p-jpeg: Don't use temporary structure in s5p_jpeg_buf_queue
authorThierry Escande <thierry.escande@collabora.com>
Fri, 30 Jun 2017 14:15:43 +0000 (10:15 -0400)
committerMauro Carvalho Chehab <mchehab@s-opensource.com>
Wed, 26 Jul 2017 12:30:29 +0000 (08:30 -0400)
commit14a2de14dc0619bf926c56cd12e29e0245d12abc
treea98bec9750964430cab926855392b4c7950dacb9
parentfe8a57b618fe128481b8603169a694712a73fbc9
media: s5p-jpeg: Don't use temporary structure in s5p_jpeg_buf_queue

If s5p_jpeg_parse_hdr() fails to parse the JPEG header, the passed
s5p_jpeg_q_data structure is not modified so there is no need to use a
temporary structure and the field-by-field copy can be avoided.

Signed-off-by: Thierry Escande <thierry.escande@collabora.com>
Acked-by: Andrzej Pietrasiewicz <andrzej.p@samsung.com>
Acked-by: Jacek Anaszewski <jacek.anaszewski@gmail.com>
Signed-off-by: Sylwester Nawrocki <s.nawrocki@samsung.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@s-opensource.com>
drivers/media/platform/s5p-jpeg/jpeg-core.c