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

Commit e52bf3ae authored by Maulik Shah's avatar Maulik Shah
Browse files

power: qcom: msm-pm: Correct check for not null



Correctly check if pdev is not null.

Change-Id: I0b2991af9b03f548330e84fbf99594dbf05e26f1
Signed-off-by: default avatarMaulik Shah <mkshah@codeaurora.org>
parent 714bfa4f
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -550,7 +550,7 @@ static int msm_cpu_status_probe(struct platform_device *pdev)
	u32 cpu;
	int rc;

	if (!pdev | !pdev->dev.of_node)
	if (!pdev || !pdev->dev.of_node)
		return -EFAULT;

	msm_pm_slp_sts = devm_kzalloc(&pdev->dev,