mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-11 07:03:09 -04:00
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>
This commit is contained in:
parent
2ca41c176a
commit
06f3217207
1 changed files with 1 additions and 4 deletions
|
|
@ -537,10 +537,7 @@ static int msm_hdmi_register_audio_driver(struct hdmi *hdmi, struct device *dev)
|
|||
PLATFORM_DEVID_AUTO,
|
||||
&codec_data,
|
||||
sizeof(codec_data));
|
||||
if (IS_ERR(hdmi->audio_pdev))
|
||||
return PTR_ERR(hdmi->audio_pdev);
|
||||
|
||||
return 0;
|
||||
return PTR_ERR_OR_ZERO(hdmi->audio_pdev);
|
||||
}
|
||||
|
||||
static int msm_hdmi_bind(struct device *dev, struct device *master, void *data)
|
||||
|
|
|
|||
Loading…
Reference in a new issue