[media] mtk_vcodec_dec: return error at mtk_vdec_pic_info_update()
authorMauro Carvalho Chehab <mchehab@s-opensource.com>
Thu, 18 May 2017 13:48:03 +0000 (10:48 -0300)
committerMauro Carvalho Chehab <mchehab@s-opensource.com>
Fri, 19 May 2017 10:12:05 +0000 (07:12 -0300)
commit36bcba973ad478042d1ffc6e89afd92e8bd17030
tree67aa19d1013df02bd0825e76d3d3c2ea49b9b3ff
parenta16e37726c444cbda91e73ed5f742e717bfe866f
[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 <mchehab@s-opensource.com>
drivers/media/platform/mtk-vcodec/mtk_vcodec_dec.c