projects
/
GitHub
/
moto-9609
/
android_kernel_motorola_exynos9610.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
2ca41c1
)
drm/msm/hdmi: use PTR_ERR_OR_ZERO() to simplify the code
author
Wei Yongjun
<yongjun_wei@trendmicro.com.cn>
Tue, 12 Jul 2016 11:06:52 +0000
(11:06 +0000)
committer
Rob Clark
<robdclark@gmail.com>
Sat, 16 Jul 2016 14:29:31 +0000
(10:29 -0400)
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
patch
|
blob
|
blame
|
history
diff --git
a/drivers/gpu/drm/msm/hdmi/hdmi.c
b/drivers/gpu/drm/msm/hdmi/hdmi.c
index 33bf52c6b312ccfc792ef3010e74a854df0554d1..973720792236fe4dfd68327137dbc2202501058e 100644
(file)
--- a/
drivers/gpu/drm/msm/hdmi/hdmi.c
+++ b/
drivers/gpu/drm/msm/hdmi/hdmi.c
@@
-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)