Received: by 10.223.185.116 with SMTP id b49csp1040750wrg; Fri, 16 Feb 2018 11:18:36 -0800 (PST) X-Google-Smtp-Source: AH8x224T640sdL68DB2G5W98UMdGSGkQV2v5KTJqUS8EcQZn+j1FGeEEBIcl1i2VI/xfl1b5PioQ X-Received: by 10.99.130.72 with SMTP id w69mr5883678pgd.368.1518808716653; Fri, 16 Feb 2018 11:18:36 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1518808716; cv=none; d=google.com; s=arc-20160816; b=yg6l75T+4MBbogJR22cj/8fQiLKT39BvkOTrEAhShxIyFrdV+uxKbIROHz1+aYvBsg NV0Vgw/podPHCkACHGEIkc+alRGT+kJkXaWgDLHAfuFWu68Ifesv5mw8vgbYAud/JZjw nH0eq4c3+kMucnUuIbYTHfiC9FRqLNbUv+O0lYq6p1XiGpOk1DuUcqlCMZyKlMbmo4+m DyDgclgb7HOy8SqHWP4JYTYTZG6UYw02h/qetTu/1JRth+gAPbkP1HAbbkGJwkFlOJZN ghXfcrKFmf0hSV2iBdNDMB7CTGsy1rRoB+s6zBe2XWaDrmpi6221+vCLLAqX3f2uza3A Tytg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding :content-language:in-reply-to:mime-version:user-agent:date :message-id:references:cc:to:from:subject:arc-authentication-results; bh=UQzvG3hu+/dUp2Dxuj3h44qzthdIuabWRFNi1yQ4BHI=; b=rkhcY+shTRRJEYSXFILWbhqfjLS4camnVx+8hSDazS1cH42yVHq9UrCl2+YOTn94an sI3K/mr6p6wwBM1mKDBmojjo8oumGHk6yeBPC6POob7JqcXj358g2A35bSbWHcamBK2P rE1FTUy5xCadgAnQRZOs6QKVSxwPH6uTCBx9n/Rief2KbzAmSZbCZLOVrEMsQsGaE7Fi CA/ypEVlUNHUPhgrqelpkz/M5fW1xW5LcN9TO//2IjfrONRbIGnwODH7gV7n9WR2SVRT OUGPnGCQ5A3DlWvfetGTVcK5N6JWPSAm7DQ9Bg0NfLbHXojqlRGf0i17CPLPbMZv2stj FfHw== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=QUARANTINE sp=NONE dis=NONE) header.from=sourceforge.net Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id x9-v6si192946plv.317.2018.02.16.11.18.22; Fri, 16 Feb 2018 11:18:36 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=QUARANTINE sp=NONE dis=NONE) header.from=sourceforge.net Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1031123AbeBPP7O (ORCPT + 99 others); Fri, 16 Feb 2018 10:59:14 -0500 Received: from mout.web.de ([212.227.17.12]:43723 "EHLO mout.web.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1030647AbeBPP7M (ORCPT ); Fri, 16 Feb 2018 10:59:12 -0500 Received: from [192.168.1.2] ([77.182.211.116]) by smtp.web.de (mrweb101 [213.165.67.124]) with ESMTPSA (Nemesis) id 0M4IAh-1eUdCG26iJ-00rnXg; Fri, 16 Feb 2018 16:59:03 +0100 Subject: [PATCH 2/3] pata_arasan_cf: Delete an unnecessary variable initialisation in arasan_cf_probe() From: SF Markus Elfring To: linux-ide@vger.kernel.org, Bartlomiej Zolnierkiewicz , Tejun Heo , Viresh Kumar Cc: LKML , kernel-janitors@vger.kernel.org References: Message-ID: <3b6bfa0f-3356-2fb9-07ae-bf52c1ccc47e@users.sourceforge.net> Date: Fri, 16 Feb 2018 16:59:01 +0100 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.6.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8 Content-Language: en-GB Content-Transfer-Encoding: 7bit X-Provags-ID: V03:K0:Sd0e6KrfF5fEHrCbbbetVXPkiH1eXf5GyGVGVOxpUwJ/E1W8TRz HPE3ReSIzkYAnfC9gf7y659A9drTXb6IQr2YeZ+6taDnCqXCd4Lb/P3MvbsLq8OL6t0ivdE GUujBYocNfrQYWm6vnd1CQ0o19LOPGuv2cyHdLWeqvIVJyhmDGrO98FtbLvseWVzQEUa183 J+MHuIqR0Gqd+UyPv/C1w== X-UI-Out-Filterresults: notjunk:1;V01:K0:RPtHQoKdhKw=:PzHTUALg45fn55dzSJiADv M0wYblOoQSMsHA2xc4FgF1L4oNmivfLYHEEq1QcxRUBTa+53cL3xayFe0xKPKhVfCcQZhc0Eh L70foyUKqEeHmv1JqQ64TCfNUX3d0khqi0gt00G1la21uvRxVfCz+WtTXEsh6PQAn6vuWU1nK h7wQQCDFKYYbs8E916HoZb+NTLTTUp5xfGCoaNiJyzWoGRfPuDmGLDWT80qSuzGGzKhZ3XJTM Cf+Tnbxird13hus+7PCKbVYug3jo6Bk9iRRjCIjnkHvhkkjyusn1qorK6OKQIqlkzxXLUcZBF NTSzOsIIOFlcmFOpUqTWafq41ypF59rnsHm6f2hoybnyvsNE8srZx0fwT7p+y3Q0mEVjfrC4z 3av54loiJQpOE2+WUqX6OdPnd4zvL0j15kpx5LDZ5A2KgCbXJXKTO+i+z1jn9pUz4BhT1sMcS ZiGMaFv/o4X18MnGCt2S/rOLZUB0ciI36QtXSGswScNxB03QXsR54ree5UBH6TaVULU5nrIsm ynsYrWbygy6HuG9lYTML85Hdvyh4mlsyAbmrG6L4tzh5I6UlKtZs+P0yVCcTrzu5HbDyZ/jZV 72IQqnVtkkci2eDJVfVvxG88eEDbKBB2jPG5zG54AJO47XtGUSm5XGZaq/ErgXbhRNu1b36Ns q/BltwI4SFopjpAJGv35DN7qGYxdFBaAGYvOjZW/3labum0hgCsq4Dg9AdsAVta3jTxR3HTHA Dmcodk/fy/0YYjH4jxdkw26BRQWsRFVAa45d2CcQ6y17RWWuZiQiKg5Y/zOXf2Rgy5IU5QMYt v5n/LP3jIcjxO3CmcX6So0INIPJ9oj+CWAIlxlKy3TfhzILg9A= Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Markus Elfring Date: Fri, 16 Feb 2018 16:28:23 +0100 The local variable "ret" 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/ata/pata_arasan_cf.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/ata/pata_arasan_cf.c b/drivers/ata/pata_arasan_cf.c index be5fbcedecbf..ebecab8c3f36 100644 --- a/drivers/ata/pata_arasan_cf.c +++ b/drivers/ata/pata_arasan_cf.c @@ -796,7 +796,7 @@ static int arasan_cf_probe(struct platform_device *pdev) struct resource *res; u32 quirk; irq_handler_t irq_handler = NULL; - int ret = 0; + int ret; res = platform_get_resource(pdev, IORESOURCE_MEM, 0); if (!res) -- 2.16.1