kernel_optimize_test/drivers/media/platform/mtk-jpeg
Fengguang Wu fb21cf4eec media: vcodec: fix ptr_ret.cocci warnings
drivers/media/platform/mtk-jpeg/mtk_jpeg_core.c:1087:1-3: WARNING: PTR_ERR_OR_ZERO can be used

 Use PTR_ERR_OR_ZERO rather than if(IS_ERR(...)) + PTR_ERR

Generated by: scripts/coccinelle/api/ptr_ret.cocci

Fixes: 648a957693 ("media: vcodec: fix error return value from mtk_jpeg_clk_init()")

CC: Ryder Lee <ryder.lee@mediatek.com>
Signed-off-by: Fengguang Wu <fengguang.wu@intel.com>
Signed-off-by: Hans Verkuil <hans.verkuil@cisco.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab+samsung@kernel.org>
2018-05-09 15:58:30 -04:00
..
Makefile
mtk_jpeg_core.c media: vcodec: fix ptr_ret.cocci warnings 2018-05-09 15:58:30 -04:00
mtk_jpeg_core.h
mtk_jpeg_hw.c
mtk_jpeg_hw.h
mtk_jpeg_parse.c
mtk_jpeg_parse.h
mtk_jpeg_reg.h