From patchwork Wed Jul 26 04:00:13 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: =?utf-8?b?5p2O5oms6Z+s?= X-Patchwork-Id: 126090 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:a985:0:b0:3e4:2afc:c1 with SMTP id t5csp179286vqo; Tue, 25 Jul 2023 22:01:29 -0700 (PDT) X-Google-Smtp-Source: APBJJlFOMdu76utWmlUAomp8+THcxpMZeTm7X/AZQLgsOveaHkVClxzAvO+giLsHyg6t1gbF3GH3 X-Received: by 2002:a17:906:4d2:b0:997:c5c3:32cc with SMTP id g18-20020a17090604d200b00997c5c332ccmr684865eja.66.1690347689178; Tue, 25 Jul 2023 22:01:29 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1690347689; cv=pass; d=google.com; s=arc-20160816; b=c3yoK3smIIShzKIjmUAJHm59otw3zy4EzpWC4voo/V3P93PptItA6AulAzRHurQxeD yjwitKjWqWa/k/hThb6E1gtfmLikruX+mQL2ty1wq3Tc2DgYlL5kyGl3D1/UHU8vDbhl MDz62ThRiKnZInqxOscKGw5Jsp+MLb1YOZXwiTHMHrB1ZYUznhZKgD0M845yKNW1pO08 g1LqUpdF4kQKRi9nHHH0FYjNqk6rkB2+Y69JqnrHbgC71sBNrIS1qAlZJo3IfdjQhqt8 4Dt8lsPxr88m+/ZHqOKry+KHesSjFkA8Erbv99Qs1e3BZuFGP9BLPIHVa97skwZqPfS+ blKA== 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=AoA9//5kHHjTZWZjeepbfNiubEEEDDWamxoqqTR60BI=; fh=Dum1SMwgEGk1fg5SRoqtuB0lemvsC6TihB1EzSc/Er4=; b=wrG0p4w0ltMBL7I5eHX+kAKqsu/Ub9pMX3crz1q1jJ6ofmzgm2GikrSS++KdQ8DG/j BIo0kmpOCX1xTfOGtkgVEZyip8DXJuGz5IUag2hNc/JqcXAV/qxVWGPktnFNOkapJKU7 CMQ3EUC/aYQw05sU2YdIdcdovSipw2E4W1wvej9cshCmrqtJF5YVuvpNDAz/ACUakcSe qPKFL39HNJkUGg7gW2VBYYdj7yL/WvUJ6lZK41jHuZm7eP59cfLtW9znCooRJxfCdKo/ Jku4Tf1PAhFvsOwJcPomip2m7//Bbww6oQ7/3JFcBScVLhIiIdeozhjx5Krlh/VaWTRm qzkw== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@vivo.com header.s=selector2 header.b=Y+RlYzyu; 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: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id p7-20020a170906838700b00991c32f3565si9002483ejx.30.2023.07.25.22.01.05; Tue, 25 Jul 2023 22:01:29 -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=Y+RlYzyu; 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 S230269AbjGZEFz (ORCPT + 99 others); Wed, 26 Jul 2023 00:05:55 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:55508 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231167AbjGZEE5 (ORCPT ); Wed, 26 Jul 2023 00:04:57 -0400 Received: from APC01-SG2-obe.outbound.protection.outlook.com (mail-sgaapc01on2133.outbound.protection.outlook.com [40.107.215.133]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 501FD268E; Tue, 25 Jul 2023 21:02:51 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=NViTL0bx+Opwo1OhmsO4amyLJzeyGnJH3vnAi27l2HuGZVmwOk5Lm447HWX/vUA74jUyczquOlo6uZndk2qY6eX+m2jEfCk3oiFTSNDr6jiA72TxVBLXl2oM7+ZJA3KsyamM8Xo8Xg03KaUYu54KRMpQvjPcQN4p+Jj4ArFLgtl2AY/dbxV685YHHyVvVgfZNJFMTRELEaacz+6Ja0FQRON8axDQSvL6qUUqvRw7c0g4jJTf8JyvBg6X7vcaootPdjlZiRigO1HO7OwLYPYkd4axiAHRDa8NY8rUFd2ZWajWmOMGXXPYITj/MAcPl2jPfj1SXTKN+IIXP47ItZPW8A== 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=AoA9//5kHHjTZWZjeepbfNiubEEEDDWamxoqqTR60BI=; b=J8JaQw9Knj4YM2Jeui02azWhofCFqaoWSwrqaRPejSb1Tn3UkMt3zBvWbbzf1sd1XlgEiLU8xBfyYLBs4IcY2enss+myJPqK5XJmDHPmIPty/7UhwRlbtZ5WsBOms3LZSMbbLlL1+dNj9buo7YOz+ZA9zrrRAzxSHKTQrO6vfW5K8TmuLO5DpwlzoIfvJlySaQxJTcglqLTGrIjMEBTcHgtUwKXBIKX+YPM7uYk/cGfwcy0d2qNZJxM6/5Nm3ETD9k2Es+0xrw+8T5i1iUV8mI/fNyVDWMsXJFesqifQR3JGbgeu7g+qi2ugaejx5TBaYAGQUFLIYiK7/JYCIGXOrw== 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=AoA9//5kHHjTZWZjeepbfNiubEEEDDWamxoqqTR60BI=; b=Y+RlYzyujhBusf25BSQI5W/2vDTLL0YxmlLJLXQ5JRA5hrPPypyk0q6i7XFbUGD5Q4QojwPI2SbIJCXM3w3J/bCY4smoQ6psY14G0f+6xGFUYAi6JvZzuPbh05tGUgImFwlfxwMrnToSd6m2FgYgbDxbNDPSocaRpjX9DaGy4uIE221Y8DrTlkUjFvg4PLwiXmtx+O8dfIVQzmNwu9X1aSbxIpF92oZ23WHoBpgS3LMURY1ZBlR0hGEFzp5u4nn9nSBxeGQ7qlfUK38wQUhWV2iO/L9Vg9F1KN90p0tnHgDxZAyzzMNVu4+vNKKrNPLfMrq1SNjN/O6AcLY9HA4Jpw== 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 KL1PR0601MB5463.apcprd06.prod.outlook.com (2603:1096:820:c3::13) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6631.25; Wed, 26 Jul 2023 04:02:22 +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; Wed, 26 Jul 2023 04:02:22 +0000 From: Yangtao Li To: Adrian Hunter , Andrew Jeffery , Ulf Hansson , Joel Stanley Cc: Yangtao Li , 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 v2 33/61] mmc: sdhci-of-aspeed: remove unneeded variables Date: Wed, 26 Jul 2023 12:00:13 +0800 Message-Id: <20230726040041.26267-33-frank.li@vivo.com> X-Mailer: git-send-email 2.39.0 In-Reply-To: <20230726040041.26267-1-frank.li@vivo.com> References: <20230726040041.26267-1-frank.li@vivo.com> X-ClientProxiedBy: SG2PR02CA0093.apcprd02.prod.outlook.com (2603:1096:4:90::33) To SEZPR06MB5269.apcprd06.prod.outlook.com (2603:1096:101:78::6) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: SEZPR06MB5269:EE_|KL1PR0601MB5463:EE_ X-MS-Office365-Filtering-Correlation-Id: 04768a4e-f160-4414-c11a-08db8d8d0cdf X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: n6jMPVaF8l+qYUI86EW0hbdtamj7x9YYUA2em50Ww+gYGOmblsRzIp7Ne3VBf1K7rvshuxA0i0DYxgjTFheH54WtAnl63fKn2KL+WNW2baXQux93k56vxHtsV8dBYm9iPfjzizmLdbJmxA8LGIO3ZRb9EEykNAj6kB0L3PJE/PyVyk6R8HSOGwImSJlEPLJrp/QqV9yYEgN7C/6BZcza7xJKx93Wl/ZAsgFu71EXMKuPhLJUlF/jTPeVXf60Auqj+tRO/94L87PkCrf7bniycCFQfabC5fT6IOq45yikg9rNfvhzEKg/oFV3A9bnVt24g9c806+Vs3DhgkQIWWS1nUR++NrLe8mC6wR0Sawt9iYdLutDuoiMiVDt6yh2P71tuJDQoo0jLKNhcY9cSOfPZEQmj/tkZSr1/QB6t7MuEpZoEtHejrynTVzMNWOvQT5pvBOhvPfD1KjpOsG/Lm9k5o43EHX7ng/HUbsYLu8T6KWAXqBt3CTi9mC4+WR6/uubgVv6ocQDC3UAcs8JxPslku5boPaIeqgYJvpCbZyb5LJ5HvcgExM6o4Z9iXQytODGGyAVfxjH2V0eK1fT99D2n5sdHmXFmlFywx8do5vZg96hQ0mQeYh1uVwbQLDBfwiE 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)(396003)(39860400002)(346002)(366004)(376002)(136003)(451199021)(110136005)(38350700002)(6512007)(38100700002)(52116002)(6486002)(6666004)(478600001)(41300700001)(5660300002)(2616005)(8936002)(8676002)(66556008)(4326008)(66476007)(66946007)(316002)(186003)(83380400001)(6506007)(26005)(1076003)(86362001)(4744005)(2906002)(36756003);DIR:OUT;SFP:1102; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: ySiMMvKQq1lNIHu5yDNHKuT7lvcme/+vpzsz65JJojYuaA1li7jbp7tvI6HQ8Z/ykk3oSETDZ/bNm4QMaMJRdkmJtcHnuQjNYXNkI962VLGJne/ijtWnt+1mNYqKsoyK/yryqF6/GfV/kgVcr51UOoAhwpGh9W2JPszOP+UdJDvPUej1sxll3D0VMRgTHM42N7ei8bjURLNMf/Ca4HEtKdgRrOZ4J/Pqw1u0rafxGZELIlvovLwWjXFN1e3tTq0yKJ9sSwxZ6PRTPFqK1lEbmWs0P+c46+Ph4WHreHn2kem8flsqJr77NSy/ZicVyNkkazWa8D13AJyWp0T46HO0PMygl+6LmwBNwvWBiw8jSNzbK9BMXsftTpOtGlCpr3T6hfF6u3N1ShWbnsfJiKqKovxuI75JHvT2GT4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Xh+D0SFdytNRwK4Gs3VzCPM6DgV/4Kew2qLWYeWeOPrLT8T45H1N1BhXM+cYyMeXO3OfZ1pwH+1hxpG2Q8nRUGaVSCP X-OriginatorOrg: vivo.com X-MS-Exchange-CrossTenant-Network-Message-Id: 04768a4e-f160-4414-c11a-08db8d8d0cdf X-MS-Exchange-CrossTenant-AuthSource: SEZPR06MB5269.apcprd06.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 26 Jul 2023 04:01:55.1175 (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: rMux5BcvO6rt5Jc0VYq5LQvVzTOk9FFr7OPfrGvPAaDBZ43aQHSeCP2ycZEe8w0dNevu6MIoWsIgo53mTnm0+A== X-MS-Exchange-Transport-CrossTenantHeadersStamped: KL1PR0601MB5463 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, 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 X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1772458018637571059 X-GMAIL-MSGID: 1772458018637571059 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);