From 92d889892a6f8b312bbe50d13318da7f311b3ba1 Mon Sep 17 00:00:00 2001 From: Anant Goel Date: Tue, 4 Sep 2018 14:42:20 -0700 Subject: [PATCH] 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 --- drivers/soc/qcom/subsystem_notif_virt.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/soc/qcom/subsystem_notif_virt.c b/drivers/soc/qcom/subsystem_notif_virt.c index fb6697b25f05..f8ce53cfa9f7 100644 --- a/drivers/soc/qcom/subsystem_notif_virt.c +++ b/drivers/soc/qcom/subsystem_notif_virt.c @@ -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;