Commit 75b45627 authored by Yue Haibing's avatar Yue Haibing Committed by Linus Walleij
Browse files

pinctrl: pistachio: Remove dead code in pistachio_gpio_register()



fwnode_irq_get() was changed to not return 0, so this check is dead code now.

Signed-off-by: default avatarYue Haibing <yuehaibing@huawei.com>
Reviewed-by: default avatarJonathan Cameron <Jonathan.Cameron@huawei.com>
Link: https://lore.kernel.org/20250118031145.243104-1-yuehaibing@huawei.com


Signed-off-by: default avatarLinus Walleij <linus.walleij@linaro.org>
parent c98868e8
Loading
Loading
Loading
Loading
+0 −6
Original line number Diff line number Diff line
@@ -1393,12 +1393,6 @@ static int pistachio_gpio_register(struct pistachio_pinctrl *pctl)
			dev_err(pctl->dev, "Failed to retrieve IRQ for bank %u\n", i);
			goto err;
		}
		if (!ret) {
			fwnode_handle_put(child);
			dev_err(pctl->dev, "No IRQ for bank %u\n", i);
			ret = -EINVAL;
			goto err;
		}
		irq = ret;

		bank = &pctl->gpio_banks[i];