diff options
author | Fabian Frederick <fabf@skynet.be> | 2015-05-04 17:03:55 (GMT) |
---|---|---|
committer | Rob Clark <robdclark@gmail.com> | 2015-06-11 17:11:04 (GMT) |
commit | bdc80de2a6dbaa0d08c393b4ba8912a0ad4b047f (patch) | |
tree | 87ef2c0d6b21f3739cbf80c6ab0e7691a6dbdbc5 | |
parent | 73dbf69638b760ce62fe6df4cece983ef28abc13 (diff) | |
download | linux-bdc80de2a6dbaa0d08c393b4ba8912a0ad4b047f.tar.xz |
drm/msm: use IS_ERR() to check regulator_get() return
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>
-rw-r--r-- | drivers/gpu/drm/msm/dsi/dsi_host.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/gpu/drm/msm/dsi/dsi_host.c b/drivers/gpu/drm/msm/dsi/dsi_host.c index ae06165..517e070 100644 --- 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; } |