drm/msm/hdmi: use PTR_ERR_OR_ZERO() to simplify the code
authorWei Yongjun <yongjun_wei@trendmicro.com.cn>
Tue, 12 Jul 2016 11:06:52 +0000 (11:06 +0000)
committerRob Clark <robdclark@gmail.com>
Sat, 16 Jul 2016 14:29:31 +0000 (10:29 -0400)
commit06f3217207766b4bc2e56b88e0736037ae92fd30
tree9be0557e31a7353fb276a4e909210f9126868dd5
parent2ca41c176a5d2197572153bf543a3f758c13a4d3
drm/msm/hdmi: use PTR_ERR_OR_ZERO() to simplify the code

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

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

Signed-off-by: Wei Yongjun <yongjun_wei@trendmicro.com.cn>
Signed-off-by: Rob Clark <robdclark@gmail.com>
drivers/gpu/drm/msm/hdmi/hdmi.c