summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMarkus Elfring <elfring@users.sourceforge.net>2018-01-12 14:48:40 -0500
committerLinus Walleij <linus.walleij@linaro.org>2018-01-17 01:44:16 -0500
commit0f7192318bd81b5bfa6b0f12d71f0f00c67acb78 (patch)
tree3f5652ce5a312502a79f9b0d2d9ff587612ee3f3
parent757ad058da83c800891bffd0bcba232853104892 (diff)
gpio: stmpe: Delete an unnecessary variable initialisation in stmpe_gpio_probe()
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>
-rw-r--r--drivers/gpio/gpio-stmpe.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/drivers/gpio/gpio-stmpe.c b/drivers/gpio/gpio-stmpe.c
index 420892ccc316..f8d7d1cd8488 100644
--- a/drivers/gpio/gpio-stmpe.c
+++ b/drivers/gpio/gpio-stmpe.c
@@ -432,8 +432,7 @@ static int stmpe_gpio_probe(struct platform_device *pdev)
432 struct stmpe *stmpe = dev_get_drvdata(pdev->dev.parent); 432 struct stmpe *stmpe = dev_get_drvdata(pdev->dev.parent);
433 struct device_node *np = pdev->dev.of_node; 433 struct device_node *np = pdev->dev.of_node;
434 struct stmpe_gpio *stmpe_gpio; 434 struct stmpe_gpio *stmpe_gpio;
435 int ret; 435 int ret, irq;
436 int irq = 0;
437 436
438 stmpe_gpio = kzalloc(sizeof(*stmpe_gpio), GFP_KERNEL); 437 stmpe_gpio = kzalloc(sizeof(*stmpe_gpio), GFP_KERNEL);
439 if (!stmpe_gpio) 438 if (!stmpe_gpio)