aboutsummaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/sctop.py
diff options
context:
space:
mode:
authorMauro Carvalho Chehab <[email protected]>2017-05-18 10:40:00 -0300
committerMauro Carvalho Chehab <[email protected]>2017-05-19 07:10:50 -0300
commita16e37726c444cbda91e73ed5f742e717bfe866f (patch)
tree8f0e4affd6f3fcb6488c50841ad0a402b30d5667 /tools/perf/scripts/python/sctop.py
parent06eeefe8e310bf955da7f82547c72c43e4653d97 (diff)
[media] s5p-jpeg: don't return a random width/height
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; ~~~~~~~~~~^~~~~~~ drivers/media/platform/s5p-jpeg/jpeg-core.c:1208:12: warning: 'height' may be used uninitialized in this function [-Wmaybe-uninitialized] result->h = height; ~~~~~~~~~~^~~~~~~~ Indeed the code would allow it to return a random value (although it shouldn't happen, in practice). So, explicitly set both to zero, just in case. Acked-by: Andrzej Pietrasiewicz <[email protected]> Signed-off-by: Mauro Carvalho Chehab <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/sctop.py')
0 files changed, 0 insertions, 0 deletions