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: Anant Goel <anantg@codeaurora.org>
This commit is contained in:
Anant Goel 2018-09-04 14:42:20 -07:00 committed by Gerrit - the friendly Code Review server
parent 93e700b2d2
commit 92d889892a

View file

@ -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;