From: Markus Elfring Date: Fri, 12 Jan 2018 19:48:40 +0000 (+0100) Subject: gpio: stmpe: Delete an unnecessary variable initialisation in stmpe_gpio_probe() X-Git-Tag: v4.16-rc1~135^2~7 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=0f7192318bd81b5bfa6b0f12d71f0f00c67acb78;p=thirdparty%2Flinux.git 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 Signed-off-by: Linus Walleij --- diff --git a/drivers/gpio/gpio-stmpe.c b/drivers/gpio/gpio-stmpe.c index 420892ccc3169..f8d7d1cd8488e 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) 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)