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>
This commit is contained in:
Fabian Frederick 2015-05-04 19:03:55 +02:00 committed by Rob Clark
parent 73dbf69638
commit bdc80de2a6

View File

@ -273,7 +273,7 @@ static const struct dsi_config *dsi_get_config(struct msm_dsi_host *msm_host)
u32 major = 0, minor = 0; u32 major = 0, minor = 0;
gdsc_reg = regulator_get(&msm_host->pdev->dev, "gdsc"); 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__); pr_err("%s: cannot get gdsc\n", __func__);
goto fail; goto fail;
} }