Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751976AbeAPMAM (ORCPT + 1 other); Tue, 16 Jan 2018 07:00:12 -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 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-Type: text/plain; charset=utf-8 Content-Language: en-GB Content-Transfer-Encoding: 8bit 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-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Return-Path: 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); -- 2.15.1