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

Commit 92d88989 authored by Anant Goel's avatar Anant Goel Committed by Gerrit - the friendly Code Review server
Browse files

soc: qcom: subsystem_notif_virt: Fix error condition check



An error check casts an integer to a pointer. Fix the error
check so that the integer is not casted to a pointer.

Change-Id: Ib15634745cc2243e4fe54557d6670956d8349e93
Signed-off-by: default avatarAnant Goel <anantg@codeaurora.org>
parent 93e700b2
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -176,7 +176,7 @@ static int subsys_notif_virt_probe(struct platform_device *pdev)
		case VIRTUAL:
			subsystem->ssr_irq =
				of_irq_get_byname(child, "state-irq");
			if (IS_ERR_OR_NULL(subsystem->ssr_irq)) {
			if (subsystem->ssr_irq < 0) {
				dev_err(&pdev->dev, "Could not find IRQ\n");
				ret = -EINVAL;
				goto err;