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:
73dbf69
)
drm/msm: use IS_ERR() to check regulator_get() return
author
Fabian Frederick
<fabf@skynet.be>
Mon, 4 May 2015 17:03:55 +0000
(19:03 +0200)
committer
Rob Clark
<robdclark@gmail.com>
Thu, 11 Jun 2015 17:11:04 +0000
(13:11 -0400)
regulator_get() never returns NULL. There's no need for IS_ERR_OR_NULL()
Signed-off-by: Fabian Frederick <fabf@skynet.be>
Signed-off-by: Rob Clark <robdclark@gmail.com>
drivers/gpu/drm/msm/dsi/dsi_host.c
patch
|
blob
|
blame
|
history
diff --git
a/drivers/gpu/drm/msm/dsi/dsi_host.c
b/drivers/gpu/drm/msm/dsi/dsi_host.c
index ae061653ca06c037ef4f81a78f5093338417fb0b..517e0709b77def341226702b468fcb2a3dfa8809 100644
(file)
--- a/
drivers/gpu/drm/msm/dsi/dsi_host.c
+++ b/
drivers/gpu/drm/msm/dsi/dsi_host.c
@@
-273,7
+273,7
@@
static const struct dsi_config *dsi_get_config(struct msm_dsi_host *msm_host)
u32 major = 0, minor = 0;
gdsc_reg = regulator_get(&msm_host->pdev->dev, "gdsc");
- if (IS_ERR
_OR_NULL
(gdsc_reg)) {
+ if (IS_ERR(gdsc_reg)) {
pr_err("%s: cannot get gdsc\n", __func__);
goto fail;
}