diff options
author | Fabian Frederick <fabf@skynet.be> | 2015-05-04 20:03:55 +0300 |
---|---|---|
committer | Rob Clark <robdclark@gmail.com> | 2015-06-11 20:11:04 +0300 |
commit | bdc80de2a6dbaa0d08c393b4ba8912a0ad4b047f (patch) | |
tree | 87ef2c0d6b21f3739cbf80c6ab0e7691a6dbdbc5 /drivers/gpu/drm/msm | |
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>
Diffstat (limited to 'drivers/gpu/drm/msm')
-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 ae061653ca06..517e0709b77d 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; } |