Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753621AbbL2ORI (ORCPT ); Tue, 29 Dec 2015 09:17:08 -0500 Received: from mout.web.de ([212.227.17.12]:61121 "EHLO mout.web.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753266AbbL2ORG (ORCPT ); Tue, 29 Dec 2015 09:17:06 -0500 Subject: [PATCH 1/2] mfd: smsc-ece1099: Delete an unnecessary variable initialisation in smsc_i2c_probe() To: LKML , Lee Jones References: <566ABCD9.1060404@users.sourceforge.net> <5682957F.5000604@users.sourceforge.net> Cc: kernel-janitors@vger.kernel.org, Julia Lawall From: SF Markus Elfring Message-ID: <568295DD.3090809@users.sourceforge.net> Date: Tue, 29 Dec 2015 15:17:01 +0100 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:38.0) Gecko/20100101 Thunderbird/38.4.0 MIME-Version: 1.0 In-Reply-To: <5682957F.5000604@users.sourceforge.net> Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-Provags-ID: V03:K0:xRuZkVP846Wo1inFu4un5Q91KCzkzP1R6tIgljxAfyZQetDN4mb 1xBVovfcIHfyutrf1PS9dtWSHFca+WwK9bZoV+kfAcfNG+eOvH2J7nsbmUiJ3DoAp0PHpRh 1ucLsgm/U92VKHNUPnBafSNmswoQFV6CR9TzvaakxJh/3tUAHhtLDJkvOf5ZVbD/nKo+ZE7 JlDSWiGpheC7X0Jxl8pAg== X-UI-Out-Filterresults: notjunk:1;V01:K0:HJ1f6v9cW7g=:aaq3cI40ArhOrGessDJawt 1ReTuRc7qV5J3+UBF+jWLjkkT2wMsr7c8hBGv2mLpAdv3Bou6uwtqp0cHnVerInQVNou5xKDq CiMvz3d0XK0ZDI3qNplQjQXBpe1jh642KmELPCD1zoxQ9+4DRC5RuKnXR1VTDI3399eJc4NOK jIwF0bvasgf+cKW9RJwNPQRzjtFLq+2iOn4F9P6iskN3ip0D29jHAP4T4hlBCBk+ys2umbN/s hWoAOyZoMnuG5qsz7ovIo66JUWjHtws0xwlFENBnI2Ic08gTHJHW2UHCCSP78raznLgtJgepj U0QAMBwGSya5r+Vw7WBLWwd0Gu2CT5qVtG1vS5U9k0ZV7JO6zrA1cscmIcCdt0c7h4LzGIhEU gndNXT40EWhHxaU+VpDX+p6XeizZ+obWsvg/V7bWcc6HOMnV+UcLO1G76cwV0tBUfPM2X8oFp bgmFHypJyisQ/PChh0C0aPyeyAIo6fcOivvkdG2JJ7gizgIq4cHePKJ4o1sTxd6dCxXVsUrFV N3Bji/KPF8zyWZCa6JJoLK0KJzL3HhjeFyrOjGlnRq98MQTF5xwgkfHEJ0NDi0LAp783tRtUj uHVbn60XYzgVVg0XZUNpa39MyyTDkqiK6rxLlXWywvW7ysb1WNjeIQzUjNvvLYWmBA3V2mHPU 0WFVF+x9CDcwb3ZXJAUfmR5gUx8LtS3Mjbkwjbbl8o9T1NnmX8YA8ZunWHAyd7zrQAK/Y5Mge usiZV2dxAVm99D9pzoVLe5VE++6UoWtFojhqk+DgK5gkTGq+DRwDcVec7zpmpHohv8XRdO+LM 0V0GxLCLSE2FqRW2R1zi8r8PFy0tQ== Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1022 Lines: 32 From: Markus Elfring Date: Tue, 29 Dec 2015 14:47:40 +0100 The variable "ret" will be set to an appropriate value a bit later. Thus let us omit the explicit initialisation at the beginning. Signed-off-by: Markus Elfring --- drivers/mfd/smsc-ece1099.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/mfd/smsc-ece1099.c b/drivers/mfd/smsc-ece1099.c index a4c0df7..bcac488 100644 --- a/drivers/mfd/smsc-ece1099.c +++ b/drivers/mfd/smsc-ece1099.c @@ -36,7 +36,7 @@ static int smsc_i2c_probe(struct i2c_client *i2c, { struct smsc *smsc; int devid, rev, venid_l, venid_h; - int ret = 0; + int ret; smsc = devm_kzalloc(&i2c->dev, sizeof(struct smsc), GFP_KERNEL); -- 2.6.3 -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/