tree 67aa19d1013df02bd0825e76d3d3c2ea49b9b3ff parent a16e37726c444cbda91e73ed5f742e717bfe866f author Mauro Carvalho Chehab 1495115283 -0300 committer Mauro Carvalho Chehab 1495188725 -0300 [media] mtk_vcodec_dec: return error at mtk_vdec_pic_info_update() Gcc 7.1 complains that: drivers/media/platform/mtk-vcodec/mtk_vcodec_dec.c: In function 'mtk_vdec_pic_info_update': drivers/media/platform/mtk-vcodec/mtk_vcodec_dec.c:284:6: warning: variable 'ret' set but not used [-Wunused-but-set-variable] int ret; ^~~ Indeed, if debug is disabled, "ret" is never used. The best fix for it seems to make the fuction to return an error code. Signed-off-by: Mauro Carvalho Chehab