Merge "soc: qcom: subsystem_notif_virt: Fix error condition check"

This commit is contained in:
Linux Build Service Account 2018-09-05 22:13:30 -07:00 committed by Gerrit - the friendly Code Review server
commit b9c3aa30ea

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;