Input: synaptics-rmi4 - fix the error return code in rmi_probe_interrupts()

The error return code PTR_ERR(data->irqdomain) is always 0 since
data->irqdomain is equal to NULL in this error handling case.

Fixes: 24d28e4f12 ("Input: synaptics-rmi4 - convert irq distribution to irq_domain")
Signed-off-by: Wei Yongjun <weiyongjun1@huawei.com>
Reviewed-by: Lyude Paul <lyude@redhat.com>
Reviewed-by: Nick Desaulniers <ndesaulniers@google.com>
Signed-off-by: Dmitry Torokhov <dmitry.torokhov@gmail.com>
This commit is contained in:
Wei Yongjun 2018-06-11 10:09:15 -07:00 коммит произвёл Dmitry Torokhov
Родитель 24d28e4f12
Коммит fd62929475
1 изменённых файлов: 1 добавлений и 1 удалений

Просмотреть файл

@ -1043,7 +1043,7 @@ int rmi_probe_interrupts(struct rmi_driver_data *data)
data);
if (!data->irqdomain) {
dev_err(&rmi_dev->dev, "Failed to create IRQ domain\n");
return PTR_ERR(data->irqdomain);
return -ENOMEM;
}
data->irq_count = irq_count;