Received: by 2002:a05:6358:c692:b0:131:369:b2a3 with SMTP id fe18csp663785rwb; Wed, 26 Jul 2023 00:16:46 -0700 (PDT) X-Google-Smtp-Source: APBJJlG+nun13h6P83JOgW+zyHDko0bAZ4rA2hwmUMOXimZ18ozST1MyefSbFVmgsR8Xq9NcxWYP X-Received: by 2002:aa7:d155:0:b0:521:728f:d84e with SMTP id r21-20020aa7d155000000b00521728fd84emr1577943edo.0.1690355806276; Wed, 26 Jul 2023 00:16:46 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1690355806; cv=none; d=google.com; s=arc-20160816; b=aQojinDAR3NN9jmRFgT+KarX6gOeP2EIkHCaI/hb8XvOw+ORnLOGSB6yQ0vymr0uKV PLUYWPMYNwHWZVVnt3dkxxCBnDPRctIUPoz/KsaWsByDcR//M3LyRrwl2dfAfcUJp336 bEG6Nvf3G3sw/M5R/A+qGecl7OA4IZMieP5VD3jKEJd8Zra+L6K5akBXTN1Qw8rmz0B+ P4ctZyUoE9eTKS3dHaNBogwWCX9iW/CpaH0Yw/gTs3BxhU63iChfhSIbYfwSuT8Ts3Ux +t7Wd13LLQffmTG3DNlEs4Z9VDpTfICJdNep2wcbQHhmKx9VW1Hd/KmxnJLgVfX2cQGe ADdA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to :organization:from:references:cc:to:content-language:subject :user-agent:mime-version:date:message-id:dkim-signature; bh=VMTz8lqeY6EiSN2vPjlmrM9auS31z7kA6TzKmz9SY8U=; fh=GK5BT/MWNJdk2KFIBke+IJegdiRtD8FN22LJVVaMolg=; b=D87BFXwkPSpc97qnsKqaPSsiFTg6MeKvSpIuKIzU8neLQX7eqdiPF6yQNt7piX7rcw iEOec+3wiz2G+HIYuaMbRubCXOw4qrRjcjSPWOYDr+j5VVxiHdlqWF4XLQi8Z8rflKcs m6PuHSP0UC2JxVmvE8xrCg51hFGZIqaXutnL8ksRJlqD08L/fpi+CVPHmSwuTOGoZV7+ wZVoXrZ6yEmS/hOLVb5875uIuFZ1Siw4RgqPN+ZmNUtb4EG4mqOel2LOm6jCFCKaw28Z tELWr5DH3LO6Pic3lu0Qb4Qgfb6IHmBpx26B9KCzQGVImONHyyIKisc2Hyvo7gIrT6ue /bAQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=ntNCWJTk; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id bc22-20020a056402205600b0052228895a46si5330490edb.638.2023.07.26.00.16.23; Wed, 26 Jul 2023 00:16:46 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=ntNCWJTk; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231469AbjGZGpm (ORCPT + 99 others); Wed, 26 Jul 2023 02:45:42 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:58714 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232086AbjGZGpR (ORCPT ); Wed, 26 Jul 2023 02:45:17 -0400 Received: from mga17.intel.com (mga17.intel.com [192.55.52.151]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 59581F3; Tue, 25 Jul 2023 23:45:16 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1690353916; x=1721889916; h=message-id:date:mime-version:subject:to:cc:references: from:in-reply-to:content-transfer-encoding; bh=E0NopSXKtSx71VotkiqKSZjtHpk8QWrhSGVmlfa96+E=; b=ntNCWJTkjM7tAJfNSiPxtAW8oETSzeIq25uTQQ3ZjZfMnb3056+Oi5pW VHupPV1gFhklEFE1dxsDVagQPOhrhwvCmTf88nK1kirUyB5iFwS7KE5mB sv0XCcnT0KFbSthZndembi70qICWI5yL6voMzxpGAF6WOOKwfsYS807P6 0w9muOvS5BFNAplb0wEWgI66L+80lvpjAf1xLF63b7KT1FEkyKDNXEMFD 3xUo1mDYN3Y9q37gS5KgUsX17ax1xCN0ZihFJ6rUhZUo4pDZ6JWb5GmLJ faR30CiEW4IH3GOfjSTkyaEyJ+kpdxYpwApUU12R6VXvj2QdBzOx9jRQA A==; X-IronPort-AV: E=McAfee;i="6600,9927,10782"; a="348205567" X-IronPort-AV: E=Sophos;i="6.01,231,1684825200"; d="scan'208";a="348205567" Received: from orsmga005.jf.intel.com ([10.7.209.41]) by fmsmga107.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 25 Jul 2023 23:45:15 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6600,9927,10782"; a="900282908" X-IronPort-AV: E=Sophos;i="6.01,231,1684825200"; d="scan'208";a="900282908" Received: from igosu-mobl1.ger.corp.intel.com (HELO [10.0.2.15]) ([10.252.35.75]) by orsmga005-auth.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 25 Jul 2023 23:45:12 -0700 Message-ID: <382abd40-94c3-bd2a-a3a7-4fdaa195c781@intel.com> Date: Wed, 26 Jul 2023 09:45:08 +0300 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Firefox/102.0 Thunderbird/102.13.0 Subject: Re: [PATCH v2 33/61] mmc: sdhci-of-aspeed: remove unneeded variables Content-Language: en-US To: Yangtao Li , Andrew Jeffery , Ulf Hansson , Joel Stanley Cc: linux-aspeed@lists.ozlabs.org, openbmc@lists.ozlabs.org, linux-mmc@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org References: <20230726040041.26267-1-frank.li@vivo.com> <20230726040041.26267-33-frank.li@vivo.com> From: Adrian Hunter Organization: Intel Finland Oy, Registered Address: PL 281, 00181 Helsinki, Business Identity Code: 0357606 - 4, Domiciled in Helsinki In-Reply-To: <20230726040041.26267-33-frank.li@vivo.com> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-4.5 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,NICE_REPLY_A, RCVD_IN_DNSWL_MED,SPF_HELO_NONE,SPF_NONE,T_SCC_BODY_TEXT_LINE, URIBL_BLOCKED autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 26/07/23 07:00, Yangtao Li wrote: > The variable 'dead' is redundant, let's remove it. > > Signed-off-by: Yangtao Li Acked-by: Adrian Hunter > --- > drivers/mmc/host/sdhci-of-aspeed.c | 3 +-- > 1 file changed, 1 insertion(+), 2 deletions(-) > > diff --git a/drivers/mmc/host/sdhci-of-aspeed.c b/drivers/mmc/host/sdhci-of-aspeed.c > index 25b4073f698b..b4867bb4a564 100644 > --- a/drivers/mmc/host/sdhci-of-aspeed.c > +++ b/drivers/mmc/host/sdhci-of-aspeed.c > @@ -454,12 +454,11 @@ static int aspeed_sdhci_remove(struct platform_device *pdev) > { > struct sdhci_pltfm_host *pltfm_host; > struct sdhci_host *host; > - int dead = 0; > > host = platform_get_drvdata(pdev); > pltfm_host = sdhci_priv(host); > > - sdhci_remove_host(host, dead); > + sdhci_remove_host(host, 0); > > clk_disable_unprepare(pltfm_host->clk); >