Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S965363AbeALUEi (ORCPT + 1 other); Fri, 12 Jan 2018 15:04:38 -0500 Received: from mout.web.de ([212.227.15.4]:52586 "EHLO mout.web.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S965081AbeALUEf (ORCPT ); Fri, 12 Jan 2018 15:04:35 -0500 Subject: [PATCH 4/4] gpio-stmpe: Delete an unnecessary variable initialisation in stmpe_gpio_probe() From: SF Markus Elfring To: linux-gpio@vger.kernel.org, Linus Walleij Cc: LKML , kernel-janitors@vger.kernel.org References: Message-ID: <245fffed-3b76-5265-25b1-9f9077518894@users.sourceforge.net> Date: Fri, 12 Jan 2018 21:04:32 +0100 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.5.2 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8 Content-Language: en-GB Content-Transfer-Encoding: 8bit X-Provags-ID: V03:K0:S6Zbi5M0vsKrCMA/9Gjnh5j1hByEwgjtn4HTk7ifLOJy7nKfzea Ka2rDs8C+E1WdJCZGYHVFHvnZtNFqFFeaD5HKn1plVt3jIQlpcJHtxuwui448/cy+5CZo9a y6VyTU1I6ytTlCuYtHRqpC5Lpk1dnnCYDjKODmuNuBmTFgRXodbFGQeMU3VWziGWxeS1Upq rOn+cEwLWZHTo6KwWBpXA== X-UI-Out-Filterresults: notjunk:1;V01:K0:yfygS9+G6FI=:v+m7gmLKOO+P0EqEMCU/HT Bfop8xqLTmvt+LsazT1GZOi4ulEIZDoDaOVsCO+RiU8d4p5WTBQAGP09RTfyaOYWSBz8AlQlM cnwRDuBb1beJWM52eYVFCVycR+lBjiRbm1HbywogGH/9OY3sTN/eYMDh+YqzmJ00cZu/psX6U yOPKoBgEAQYpvPRDAsqOmE3wnQzqjEnI/umpW/8fU5fhXUAt509h0cBh5ZzsnldQ++tfoI4RJ 9l3lRG9/SjwQHtvtKSjbJW1P115Js3/9+ebOUwOZU0DLXMekvRQcK76AeUJryTcK5+S1xFGM7 pU3ZSeUt0j0PHQuVduwQtN6MtxU7maz+elQjb2HuCBpZKGzodAOQQeRhZULJ77GArzWvrtPjc aOHOxqNJQ+rvzYeoHXMOmD00jdmM0Bmsh6NCjmiB0UyjfENe/1wC4UYl9cZx/+55UOrSD0Et3 78+b2Y2xyApZmE9c+D3MMY2PtFVFpQ2ac9NswgMMEG9MK98qrWQqNUBQujgvjmSIRjqzyXyNn GBVPkWh4tDE3yBelWCTmYr85AJ1YfHp/kg6qAn9bPX5mKuDZ3LTKW7JZ9C0yKMRIRe3uiFdzH AK0bVhkFQz81K2NjAHVMyz3iQETYsm3h0XbupwVK0LedX55haYifSLDgb9sqACAOR1yGjZKFY bk1UYXM9dP3T3B0EPdPf41WcEoJME/wsP3QejrSZJcIZY1B2qpaLHvEMm27gJUHJfGZc9lVSy lSMNO5p0/qpZSJIXNZj8Vut5AR+xmMrknKZOGoV9OOFslGEDL839RMZ6HTr0B6YI7cxoia2bd NMgQbG2zqM9MdiwMx8qBL92rLy/YhF7XMVdTa5Rq+RmwIh9SKo= Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Return-Path: From: Markus Elfring Date: Fri, 12 Jan 2018 20:48:40 +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 --- drivers/gpio/gpio-stmpe.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/drivers/gpio/gpio-stmpe.c b/drivers/gpio/gpio-stmpe.c index d51e27eb1c59..d9f370bf460d 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) -- 2.15.1