]> git.kernelconcepts.de Git - karo-tx-linux.git/commit
[media] vcodec: mediatek: Fix return value check in mtk_vcodec_init_enc_pm()
authorWei Yongjun <yongjun_wei@trendmicro.com.cn>
Tue, 12 Jul 2016 11:02:28 +0000 (08:02 -0300)
committerMauro Carvalho Chehab <mchehab@s-opensource.com>
Wed, 13 Jul 2016 11:00:57 +0000 (08:00 -0300)
commit2efeec2d035ca4901ca5d53262c814935b730f44
tree4621bb496193c43914927eb0568059803611d3ca
parent14ee452f3a6db34706f2560951cd0010aff2c848
[media] vcodec: mediatek: Fix return value check in mtk_vcodec_init_enc_pm()

In case of error, the function devm_clk_get() returns ERR_PTR()
and not returns NULL. The NULL test in the return value check
should be replaced with IS_ERR().

Signed-off-by: Wei Yongjun <yongjun_wei@trendmicro.com.cn>
Signed-off-by: Hans Verkuil <hans.verkuil@cisco.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@s-opensource.com>
drivers/media/platform/mtk-vcodec/mtk_vcodec_enc_pm.c