Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit bdc80de2 authored by Fabian Frederick's avatar Fabian Frederick Committed by Rob Clark
Browse files

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: default avatarFabian Frederick <fabf@skynet.be>
Signed-off-by: default avatarRob Clark <robdclark@gmail.com>
parent 73dbf696
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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;
	}