]> git.ipfire.org Git - thirdparty/kernel/linux.git/commitdiff
pinctrl: pistachio: Remove dead code in pistachio_gpio_register()
authorYue Haibing <yuehaibing@huawei.com>
Sat, 18 Jan 2025 03:11:45 +0000 (11:11 +0800)
committerLinus Walleij <linus.walleij@linaro.org>
Sun, 16 Feb 2025 23:16:01 +0000 (00:16 +0100)
fwnode_irq_get() was changed to not return 0, so this check is dead code now.

Signed-off-by: Yue Haibing <yuehaibing@huawei.com>
Reviewed-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
Link: https://lore.kernel.org/20250118031145.243104-1-yuehaibing@huawei.com
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
drivers/pinctrl/pinctrl-pistachio.c

index 53408344927ad16c2292d17dfbba385bb0260352..8c50e0091b32a931a121c22607b573f85112e21f 100644 (file)
@@ -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];