From patchwork Tue Jan 16 12:00:06 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: SF Markus Elfring X-Patchwork-Id: 10166599 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id 52B94601E7 for ; Tue, 16 Jan 2018 12:00:13 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 43A5228534 for ; Tue, 16 Jan 2018 12:00:13 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 4265028554; Tue, 16 Jan 2018 12:00:13 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-6.9 required=2.0 tests=BAYES_00,RCVD_IN_DNSWL_HI autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id BCFE628534 for ; Tue, 16 Jan 2018 12:00:12 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751628AbeAPMAL (ORCPT ); Tue, 16 Jan 2018 07:00:11 -0500 Received: from mout.web.de ([212.227.17.11]:49667 "EHLO mout.web.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751259AbeAPMAK (ORCPT ); Tue, 16 Jan 2018 07:00:10 -0500 Received: from [192.168.1.3] ([92.228.15.72]) by smtp.web.de (mrweb102 [213.165.67.124]) with ESMTPSA (Nemesis) id 0MfqAq-1eEGrD11t6-00NCWr; Tue, 16 Jan 2018 13:00:07 +0100 Subject: [PATCH 2/4] mfd/tps65910: Delete an unnecessary variable initialisation in four functions From: SF Markus Elfring To: linux-omap@vger.kernel.org, Lee Jones , Tony Lindgren Cc: LKML , kernel-janitors@vger.kernel.org References: Message-ID: <4cb93571-498f-bafa-0efc-30ebc1dab3fe@users.sourceforge.net> Date: Tue, 16 Jan 2018 13:00:06 +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-Language: en-GB X-Provags-ID: V03:K0:0Xy5ohH3Jz0gBy434ivYjhnnAPdx6oZFmo2XqEWdtd3HXprKMoE GmffkAzS2NeXX+/sy5JhnZvAUItIouCDCInAqj+OQx92mXHK1dGgkEL4WNyXmabb4w2RqdL qjriSmwWdd10GUsWPzP2JLcwtPIpO2BobYghq+hcosxR6xbceKpkI7ynI68dpm340e5ESxN R7gVMo3eoqE/MDNODqHcw== X-UI-Out-Filterresults: notjunk:1; V01:K0:WPzwCKo97mE=:kBdOs2tzSm1SIxCxP52aY3 SdVRF6sU599TSnJ64sXK+lV4KsT9N4aFRWTnLNt73bPtBrTo3ebaYyeh9yA1HmSpdVIUvDM4j PHeq2NCJ/VaD4o/+oprOdv9XEFZ1JzEZR/pJyure4IarEiVtUJmDsaaF91zNF4KgD2drsaBWB CpUi+aappVUePhg+i2wY08cSHDlDaaaiP2Mhrehsb0f7V0hKOtqA36BuQaJVT+Ptx3cDsfxLY XpRhLfJOApEtVpPH3Gx/qiDuJAGR/xvO92akrhLsUg6XtZk5fkaPJYp5j37HKHGLCGB29F18c 1G063AdL6mr1/q98XE6tN/SXcmKnztfcthuPX6kHLLNf9NgdisY1Ph/jMlmIF1wPoYXc1dI21 bFtsXAZYkNBww2XkdtSat7vKBO8Q6W8tccjlc+f8iKjY2xf35XWY9eqH0VP6STzFrXRQj79fK 66HbqNmu91P1DJSfOViqzaeIvCVth3crSgjEe35wGzMciLRKHadjgPuO82ti4yvx5CwwmBToI 0xAmZuAo1KIEuncntNnbT9ufYey48TXcLUmTlwC3XMfL4EfuFgIG7KB416+R8CLV/48T077hk 8OuvPngN2S77UNG6RxeqZZCqsAWJ6ZCZ2WRUflUeRzT79n6ZPVKGlKLepLHMMXvy+NMnHMIME Q1nn2Am1cpCENUAWV2RKG6HGaRvD4Mtui5J6Zg2x7WPlHHqPdhvc2xECUtSKgrIXjBOwuChoW XkBat43dUSWnuZRDK1kQsejzKunVx5OdoH5CWsoFSzOfe3zdvbXzWlZWoCWdDhF7cnNqzaJeO JrpjQMPcL9bK4J4l8RcK/QZGm1DgXxI9B49Ay8Ulo0M9cf67Q0= Sender: linux-omap-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-omap@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP From: Markus Elfring Date: Tue, 16 Jan 2018 11:40:28 +0100 The local variable "ret" will be set to an appropriate value a bit later. Thus omit the explicit initialisation at the beginning. Signed-off-by: Markus Elfring --- drivers/mfd/tps65910.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/drivers/mfd/tps65910.c b/drivers/mfd/tps65910.c index 555bd394efc3..80ea1474c654 100644 --- a/drivers/mfd/tps65910.c +++ b/drivers/mfd/tps65910.c @@ -229,7 +229,7 @@ static struct regmap_irq_chip tps65910_irq_chip = { static int tps65910_irq_init(struct tps65910 *tps65910, int irq, struct tps65910_platform_data *pdata) { - int ret = 0; + int ret; static struct regmap_irq_chip *tps6591x_irqs_chip; if (!irq) { @@ -313,7 +313,7 @@ static int tps65910_sleepinit(struct tps65910 *tps65910, struct tps65910_board *pmic_pdata) { struct device *dev = NULL; - int ret = 0; + int ret; dev = tps65910->dev; @@ -383,7 +383,7 @@ static struct tps65910_board *tps65910_parse_dt(struct i2c_client *client, struct tps65910_board *board_info; unsigned int prop; const struct of_device_id *match; - int ret = 0; + int ret; match = of_match_device(tps65910_of_match, &client->dev); if (!match) { @@ -460,7 +460,7 @@ static int tps65910_i2c_probe(struct i2c_client *i2c, struct tps65910_board *of_pmic_plat_data = NULL; struct tps65910_platform_data *init_data; unsigned long chip_id = id->driver_data; - int ret = 0; + int ret; pmic_plat_data = dev_get_platdata(&i2c->dev);