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:
parent
93e700b2d2
commit
92d889892a
1 changed files with 1 additions and 1 deletions
|
@ -176,7 +176,7 @@ static int subsys_notif_virt_probe(struct platform_device *pdev)
|
||||||
case VIRTUAL:
|
case VIRTUAL:
|
||||||
subsystem->ssr_irq =
|
subsystem->ssr_irq =
|
||||||
of_irq_get_byname(child, "state-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");
|
dev_err(&pdev->dev, "Could not find IRQ\n");
|
||||||
ret = -EINVAL;
|
ret = -EINVAL;
|
||||||
goto err;
|
goto err;
|
||||||
|
|
Loading…
Add table
Reference in a new issue