gpio: stmpe: Delete an unnecessary variable initialisation in stmpe_gpio_probe()
authorMarkus Elfring <elfring@users.sourceforge.net>
Fri, 12 Jan 2018 19:48:40 +0000 (20:48 +0100)
committerLinus Walleij <linus.walleij@linaro.org>
Wed, 17 Jan 2018 06:44:16 +0000 (07:44 +0100)
The local variable "irq" will eventually be set to an appropriate value
a bit later. Thus omit the explicit initialisation at the beginning.

Signed-off-by: Markus Elfring <elfring@users.sourceforge.net>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
drivers/gpio/gpio-stmpe.c

index 420892ccc31693db7e7cd76fb840078d7a7f9be6..f8d7d1cd8488ebe0a905b15ce69870003018ac06 100644 (file)
@@ -432,8 +432,7 @@ static int stmpe_gpio_probe(struct platform_device *pdev)
        struct stmpe *stmpe = dev_get_drvdata(pdev->dev.parent);
        struct device_node *np = pdev->dev.of_node;
        struct stmpe_gpio *stmpe_gpio;
-       int ret;
-       int irq = 0;
+       int ret, irq;
 
        stmpe_gpio = kzalloc(sizeof(*stmpe_gpio), GFP_KERNEL);
        if (!stmpe_gpio)