Re: [PATCH 3/4] [media] s5p-jpeg: don't return a random width/height

2017-05-19 Thread Andrzej Pietrasiewicz
W dniu 18.05.2017 o 16:06, Mauro Carvalho Chehab pisze: Gcc 7.1 complains about: drivers/media/platform/s5p-jpeg/jpeg-core.c: In function 's5p_jpeg_parse_hdr.isra.9': drivers/media/platform/s5p-jpeg/jpeg-core.c:1207:12: warning: 'width' may be used uninitialized in this function

[PATCH 3/4] [media] s5p-jpeg: don't return a random width/height

2017-05-18 Thread Mauro Carvalho Chehab
Gcc 7.1 complains about: drivers/media/platform/s5p-jpeg/jpeg-core.c: In function 's5p_jpeg_parse_hdr.isra.9': drivers/media/platform/s5p-jpeg/jpeg-core.c:1207:12: warning: 'width' may be used uninitialized in this function [-Wmaybe-uninitialized] result->w = width; ~~^~~