Received: by 2002:a05:6358:c692:b0:131:369:b2a3 with SMTP id fe18csp2035752rwb; Thu, 27 Jul 2023 00:37:23 -0700 (PDT) X-Google-Smtp-Source: APBJJlEtD7YojGJqwv20Zo2gS4mv8BX1hv/SH8awhPj3m4ctpEDn0ImUgXUXXhe5++Y1iPQSlQMa X-Received: by 2002:a05:6a20:104c:b0:121:fd18:4b51 with SMTP id gt12-20020a056a20104c00b00121fd184b51mr4579035pzc.36.1690443443035; Thu, 27 Jul 2023 00:37:23 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1690443443; cv=pass; d=google.com; s=arc-20160816; b=mdaI+Ms1c1IxOA8nPCPmYSxi34PvLv+Zf6G6NVjaR2GqG1hkczgHRB3UBJ5X5fEUxV wGhNJg26D7w+0P9SQyNEyOi/FcNEcqhs3yVerux3Zp1BLxLKEjFjKZQhkMjPBn3kSBKI BfpILpK1mn+QN+iHpP1k6LuESfw+lgJ5fQSpJQ+OVOnSjFyUfvB6umRfRVm1gIKZamS9 r4x/le1nyDmncnkRbNmkpC9GuJ6ECIAbZ9bJvSNda6vqXMeWrbUMALRDIS9MUhQpqmln zYhDE1S6Rdg7Fob34KzvauTSpjbGwouTq4wdTYlCaSAIeuLtnJCvLe0Mc0bgfiRs2BfO oYew== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:content-transfer-encoding :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=A3SD+E/n9s8sf/g0RFwOgCc5gSVCSgDJcPQDwPUCPDE=; fh=dXBeKtuGJUVnSVXh+swQ0VJRTjNtJUAEpoonoNsQzGo=; b=FCkL5vOGizrsL46WyhuBEB9YKckIqFV7FETr0HpBbiSrAI+1GkUwd6VQD+sRkee+4f DC+PB9oCTGAHnPEDKfTtEOFCjWeUXQrgwHRqBYz4u9UM4nhHoYkvPckKBPolu3eSFrtM s6BYrITEgz5yD6UAWFcTtACU7gdraUldZW8PeDVCexj0jryoi175fu0zSkU1HpRpQA+X ykl8chHOIbikLPx2kl0BkZgV5QqJpnrpoGAnnPy48axIfcWr8EIV+z77Ygv3EVm6GpWo 3hj091lZnxK4vKR0i3l8DQ5FaafeR/U68zUwOhbhzQ+hnCJXbAoZyMAj99IKVNp1+JNg ULIA== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@vivo.com header.s=selector2 header.b=Vh8FaxLL; arc=pass (i=1 spf=pass spfdomain=vivo.com dkim=pass dkdomain=vivo.com dmarc=pass fromdomain=vivo.com); 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=QUARANTINE sp=QUARANTINE dis=NONE) header.from=vivo.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id s3-20020a63d043000000b00563aa631e7esi881918pgi.34.2023.07.27.00.37.09; Thu, 27 Jul 2023 00:37:23 -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=@vivo.com header.s=selector2 header.b=Vh8FaxLL; arc=pass (i=1 spf=pass spfdomain=vivo.com dkim=pass dkdomain=vivo.com dmarc=pass fromdomain=vivo.com); 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=QUARANTINE sp=QUARANTINE dis=NONE) header.from=vivo.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232138AbjG0HGI (ORCPT + 99 others); Thu, 27 Jul 2023 03:06:08 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:50184 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233064AbjG0HFB (ORCPT ); Thu, 27 Jul 2023 03:05:01 -0400 Received: from APC01-TYZ-obe.outbound.protection.outlook.com (mail-tyzapc01on2116.outbound.protection.outlook.com [40.107.117.116]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id CD7DD3AB7; Thu, 27 Jul 2023 00:03:23 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=bIepKKW5ffVg2+rjDWZRDCIMjlajBrxFkZbA3aPzDUyeyY1sGEQkRQ4yccYhdfyWHDj0vE1x+4ODU4H6kA+RnUQu6o2Q+NP2eG6a6U9DjQ8xiYaLzTDrT0j49gWNOO+XC/HN8CKZ51nFa2FzSLVrIGir9taMhlUBnHEeA0eQGFSNZdl6iaeY8n8Cdgr5a2hvrP8uuvWh3ASIP2mQxODN9mDradL/HjVpTRn6hHURospG0MuRk9ZZqICV2E5skX0Bv66AdfsejwZ/oRuwC4bMEAwhMg5n6lAD/AE1ZtAEvRHVhBpNvgHwPpxG6YpSj3uHsI4Rn4/98OKCUTHtvQsNWQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=A3SD+E/n9s8sf/g0RFwOgCc5gSVCSgDJcPQDwPUCPDE=; b=WybfvHKUgY3/dM8oKSdzMBgzZzsUZFc9bXX4LKustqcV0cddRKfhaiPcCsYeSwVDquCq1y5x23PEAEqtapz5msa5bZwgwi0Tonb8yl5cbwqKSFoWmIvrvM77ua8mBcUCMtxoAom0xwH08pBr8UY+O2wr4PkRXFU7C1Sdr9iUYpqYzwkSx0BWnYQi/sX9pP3d+5MXHgY5nvkBUPJN2hBvjonzPgZKRjlqK52ToXl3rc/vYJg0B4IhCu7S1CD5fviWjyu4uGaiLyFEgtGNOAbCAuBudUP5R3c5CVTuXy50HHWcCdIeT2LDuOhJ23kOT0Afdq+2fKoqRRXrdflPEFG5AQ== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=vivo.com; dmarc=pass action=none header.from=vivo.com; dkim=pass header.d=vivo.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=vivo.com; s=selector2; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=A3SD+E/n9s8sf/g0RFwOgCc5gSVCSgDJcPQDwPUCPDE=; b=Vh8FaxLLmXx0omhy9WsMcjGQpZ4yOb9iMEDqh2K0yqpVG7Joka3etm4FFSGv5WQigdROTJDtokuSrT4M69It8L4ObfjJ2fwOKfpq106UbGU+YZiaefJ1lH2i7ZmbfI7gaC9GmdUMSGVfO95anTlz69D1vp5BP+MOy8I4g9k4uxkpL6/ciBUISf9MvjxLXT1rOaDFMpMtpsnKPHm4w2HLYzxADo2TmIyA3mcJ8oG265BPBbfXX+I9cpw4hj2rGmYKqTueCQXKmSpKqkWKnddICwXeN3A/j5LEYMFakDAI4s2aJCEeETS/ln9YOw+3iR/uBdw25mxGDQCvx/waeC3f6A== Authentication-Results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=vivo.com; Received: from SEZPR06MB5269.apcprd06.prod.outlook.com (2603:1096:101:78::6) by TYUPR06MB6027.apcprd06.prod.outlook.com (2603:1096:400:351::7) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6631.29; Thu, 27 Jul 2023 07:01:55 +0000 Received: from SEZPR06MB5269.apcprd06.prod.outlook.com ([fe80::732f:ea1d:45a1:1e0b]) by SEZPR06MB5269.apcprd06.prod.outlook.com ([fe80::732f:ea1d:45a1:1e0b%3]) with mapi id 15.20.6631.026; Thu, 27 Jul 2023 07:01:55 +0000 From: Yangtao Li To: Andrew Jeffery , Adrian Hunter , Ulf Hansson , Joel Stanley Cc: Yangtao Li , =?UTF-8?q?Uwe=20Kleine-K=C3=B6nig?= , 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 Subject: [PATCH v3 32/62] mmc: sdhci-of-aspeed: remove unneeded variables Date: Thu, 27 Jul 2023 15:00:21 +0800 Message-Id: <20230727070051.17778-32-frank.li@vivo.com> X-Mailer: git-send-email 2.39.0 In-Reply-To: <20230727070051.17778-1-frank.li@vivo.com> References: <20230727070051.17778-1-frank.li@vivo.com> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-ClientProxiedBy: SI2P153CA0017.APCP153.PROD.OUTLOOK.COM (2603:1096:4:140::10) To SEZPR06MB5269.apcprd06.prod.outlook.com (2603:1096:101:78::6) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: SEZPR06MB5269:EE_|TYUPR06MB6027:EE_ X-MS-Office365-Filtering-Correlation-Id: e71f6839-8742-445a-019b-08db8e6f5cbe X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: i2qcdyt+7+uDuRoRHKe0bl1DKPxmgQ0GLcc587BOjIsazpDPKfFWRvP7GPjQzUMDpCfa9U9is5XabFGGRTHhnn1jNNyGr3x7OGcqEYirZz71/syvYt230QjzedZnzX08QReHUF/+UWs6K0sn7sper5dQUHxxcj+2PgdnhXnZmB2LSb1DQrIOw1kXS1GpXFcKYBE79oBhsvdDFgGs6Jy3H+s0NlKeUDbnthum8rmungHQEQ7xvonSuu4lYOXXjHsR5Hg31EM+vutnP8d3J2G6OynIQZTnQfXIKlN7swBzMu9GoFo/gbCNOB2sa6fh9oMmS/pVOxvl8QEfJ73Rx8Tzr6syGOcTXXKTk7oDbHySD8fUgopM+TxQEmFPNtZRQiACrAtSKrqAuDPkqzb5gtlV/cOrYC846eVCCYdZVZaXZn0VDufhbU8YRGW/wrD87w5TekHeYxBvpGonWLXaDNEL08fkBD7BTrjpq12OAowQPkwrnU7brwqcREFAWAWckw77EES64VkZvGMTzs2Vc4FG9dYRXrsh4eE9+BP3EGr4KAMMNhCUNS0rXUvlAuA+4WhD38VLzwCdJSsj0iH/tTHfdKVAGf1/Oa80hze6df2O5azSeDIlRjNWwG2ziTFkefvW X-Forefront-Antispam-Report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:SEZPR06MB5269.apcprd06.prod.outlook.com;PTR:;CAT:NONE;SFS:(13230028)(4636009)(376002)(366004)(136003)(346002)(39860400002)(396003)(451199021)(2906002)(4744005)(1076003)(6506007)(26005)(186003)(86362001)(316002)(38350700002)(38100700002)(2616005)(83380400001)(5660300002)(66946007)(41300700001)(66556008)(66476007)(8676002)(36756003)(8936002)(7416002)(52116002)(110136005)(6512007)(6666004)(4326008)(6486002)(478600001)(54906003);DIR:OUT;SFP:1102; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?utf-8?B?Nnd0MEQ4ekJrMVlhblhNQk9JcU5WOEc4T0dDMENOQ0s4dk5VaEdaajlSMGpO?= =?utf-8?B?NldtYnVXTHJIZVJadkorQlp6blU2NVJNVHY0eDJ5RFFYeEhqQmZHNWM4U2lt?= =?utf-8?B?aVVpWXZTSzVPT0dCYm0zcklKWWJLR2JmQ0RpSk1qZzlMVnhYQ0dQODMwb3dE?= =?utf-8?B?T2JUa0htT1BTOFFLRFNzVm1vVEdNUy9oUFF6WUtrb1IwYnpwMzlKQWJvWmlh?= =?utf-8?B?bERTcjhtRldLMldoQUh6aDNtTUptZitUWEpJTWlPcGR0NGw3blVoR1o2ZUVv?= =?utf-8?B?em1mVWRiUjR0VFk1VkxLMHdlYkorRW43L0tCcTEwVCtWR1BrVG5lVzczUzF2?= =?utf-8?B?dnpoRWxpR0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-Id: e71f6839-8742-445a-019b-08db8e6f5cbe X-MS-Exchange-CrossTenant-AuthSource: SEZPR06MB5269.apcprd06.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 27 Jul 2023 07:01:55.3464 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 923e42dc-48d5-4cbe-b582-1a797a6412ed X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: HY71Aw5OcZfZvwInE9Icw1LX2f7E51TUpmeQgS7GNysTKxtZwzBEr4LcW7Dj8DlBKIIsRhC2QmCu9kiCS79T2A== X-MS-Exchange-Transport-CrossTenantHeadersStamped: TYUPR06MB6027 X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_NONE, RCVD_IN_MSPIKE_H2,SPF_HELO_PASS,SPF_PASS,T_SCC_BODY_TEXT_LINE 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 The variable 'dead' is redundant, let's remove it. Signed-off-by: Yangtao Li Acked-by: Adrian Hunter Acked-by: Uwe Kleine-König --- 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); -- 2.39.0