Received: by 2002:a05:6a10:8c0a:0:0:0:0 with SMTP id go10csp1834955pxb; Mon, 18 Jan 2021 00:48:34 -0800 (PST) X-Google-Smtp-Source: ABdhPJyZK7XR9L3NtgF71zXS4Lri60N3QgsvAk4upG4VBeg1utk5W8pHx2z4t8f9YQNgLhS+cnpE X-Received: by 2002:a50:e78b:: with SMTP id b11mr18265989edn.165.1610959714252; Mon, 18 Jan 2021 00:48:34 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1610959714; cv=none; d=google.com; s=arc-20160816; b=HrNY7EoEojlVwRMVs9uvuABv7Gqs4nJtQGBOX+PrYZouhIcckKmbeTIs7vKCwm6Txp BLBjBJGxp35uedS6bkv6x9oy+RKcHGXxx9luhPj2Ngzk08ETdcIs6MCGIwAzebhGWWWP jf3gHNAlmED7cBd2pepKTPtoiDEEmlwqhwKZTiUnh+cJ8Tk99MWTfhJmqs+Lmba/fsWe /qhn+k4pHSs11JeABPWCdYaLfpjoeM9sJmx/5T8tv4Z+H3V+7e4NwCvE8BmeyBJtsy/C dPMFywYWhum18MYSnyLLKbFDVDfcfDy4zL3tWXR19ObFZ9KWgxAGMdGHGwLVlUTP4XEf 4/gQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from:dkim-signature; bh=wL40GBtfiNYs/0GH+AFmz+V/sciBn4bLLFUI24iwtlQ=; b=fGUFQJ43B9E5l5g++jgp6vd/8I5Li9muSs7qHHzUR4h8ui5PNdF0ccokz9DIbNjRjX eSEdxp4UH5TuOEnMAitWQcXRmxkJRLVyBe4inq8LaOatShs8vYKbJ71q2K8KNMBbS8/i dfBBFSvYG/+kU/wwV9jF0iU7hHYi8lhF9DcKyzhEyyXLZ2/K/cFph6/Xo7hMOFy0yGQC eHtWxwKUtDPU5WOzTxL51q2vJvkfAs06Pq1Nr1Rf442OVZwR8t6WjTKVwP4fz9P/jCdQ vjT7KGa/7oTm1QEUyla3FCtOoLHXu8RrareVEEpaXokxdnHHGhyG6c4f7j3qM3u8DuZp dcUg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=XgeTkabX; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id gj13si3634942ejb.41.2021.01.18.00.48.10; Mon, 18 Jan 2021 00:48:34 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=XgeTkabX; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2387725AbhARIqg (ORCPT + 99 others); Mon, 18 Jan 2021 03:46:36 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:36632 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2387625AbhARIq2 (ORCPT ); Mon, 18 Jan 2021 03:46:28 -0500 Received: from mail-pj1-x1030.google.com (mail-pj1-x1030.google.com [IPv6:2607:f8b0:4864:20::1030]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 3E768C061575; Mon, 18 Jan 2021 00:45:48 -0800 (PST) Received: by mail-pj1-x1030.google.com with SMTP id w1so8747053pjc.0; Mon, 18 Jan 2021 00:45:48 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=wL40GBtfiNYs/0GH+AFmz+V/sciBn4bLLFUI24iwtlQ=; b=XgeTkabXbnIVyIx6vN41vaWFx1SH3fUFm2rfZZeLheVoDEJx3LaSzEceSDs+8ZukFQ 93Hntgx4LwS6hPmOMmVe+96LOAh1KMRJEndIzIO2fTNUFT7wARozY5kY3Wkw8e9ubO1l MDWbbzXuUJpTV+BllQaPHBi/OhwZS8YbF6ipRMGZ068fuNwDtgoj2ojJgNKyzdTzlUyO 91tB0kvA3nD1llSv7U4TxMjrwcFW+uh6HAC7xm6cH5Oj2gJtK4EnomZWMG0c4bF3TD6N /WxPyUWSJva1uN+ym8yxWF6ykqXCxHw50es+pDBFBm57xjYoj/9tjj/8+p0Ld77LDv1w KeVw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=wL40GBtfiNYs/0GH+AFmz+V/sciBn4bLLFUI24iwtlQ=; b=J1opBft0b9Idb2qeQR29PofOxRxBGL6zFSFQYsfNeCoJCwN+Cd2OJfkDsppHxtIGAo XF6HSbrrF9O6Jrngk1z05SvlfnLKxWJP1Iis8wFFbVpzTCjuptT85/theCUV8vLpPGQg dnBKNMpYwEAhUrHrM+g9wWprXfP2ImJ7TSNl80dwjBHnkVGjFiWznGGLRWbsbEzBoEBe DleWKrK2vGfYhnP4iRUVTbkrgyBkdDtTqBYiR247E8v5Nwc/wHizZXvnhBGaP9QXb3Jf C/ZD4KspHBVKYodNZmSe53m4WZeKBm3p2zooI35AYLobhLbWN9rem2kZDYEa82T41uCh C/0A== X-Gm-Message-State: AOAM5301JXunnCqChg0kauwUDg1enpN5R7DUoKCxExmm0Mj8AStv09Ud lEghDLzhmcKz/GvrbtUAkz8= X-Received: by 2002:a17:902:d2cb:b029:de:757c:1f0c with SMTP id n11-20020a170902d2cbb02900de757c1f0cmr15050355plc.40.1610959547882; Mon, 18 Jan 2021 00:45:47 -0800 (PST) Received: from tj.ccdomain.com ([103.220.76.197]) by smtp.gmail.com with ESMTPSA id o7sm16587735pfp.144.2021.01.18.00.45.44 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 18 Jan 2021 00:45:47 -0800 (PST) From: Yue Hu To: ulf.hansson@linaro.org Cc: linux-mmc@vger.kernel.org, linux-kernel@vger.kernel.org, pali@kernel.org, huyue2@yulong.com, zhangwen@yulong.com, zbestahu@163.com Subject: [PATCH v2] mmc: core: remove unused host parameter of mmc_sd_get_csd() Date: Mon, 18 Jan 2021 16:45:20 +0800 Message-Id: <20210118084520.241-1-zbestahu@gmail.com> X-Mailer: git-send-email 2.29.2.windows.3 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Yue Hu The host parameter is not used in the body of mmc_sd_get_csd(), so let's remove it. Update related code at the same time. Signed-off-by: Yue Hu --- v2: fix minor commit message. drivers/mmc/core/sd.c | 4 ++-- drivers/mmc/core/sd.h | 2 +- drivers/mmc/core/sdio.c | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/drivers/mmc/core/sd.c b/drivers/mmc/core/sd.c index 6f054c4..6fa51a6 100644 --- a/drivers/mmc/core/sd.c +++ b/drivers/mmc/core/sd.c @@ -860,7 +860,7 @@ int mmc_sd_get_cid(struct mmc_host *host, u32 ocr, u32 *cid, u32 *rocr) return err; } -int mmc_sd_get_csd(struct mmc_host *host, struct mmc_card *card) +int mmc_sd_get_csd(struct mmc_card *card) { int err; @@ -1046,7 +1046,7 @@ static int mmc_sd_init_card(struct mmc_host *host, u32 ocr, } if (!oldcard) { - err = mmc_sd_get_csd(host, card); + err = mmc_sd_get_csd(card); if (err) goto free_card; diff --git a/drivers/mmc/core/sd.h b/drivers/mmc/core/sd.h index 497c026..1af5a03 100644 --- a/drivers/mmc/core/sd.h +++ b/drivers/mmc/core/sd.h @@ -10,7 +10,7 @@ struct mmc_card; int mmc_sd_get_cid(struct mmc_host *host, u32 ocr, u32 *cid, u32 *rocr); -int mmc_sd_get_csd(struct mmc_host *host, struct mmc_card *card); +int mmc_sd_get_csd(struct mmc_card *card); void mmc_decode_cid(struct mmc_card *card); int mmc_sd_setup_card(struct mmc_host *host, struct mmc_card *card, bool reinit); diff --git a/drivers/mmc/core/sdio.c b/drivers/mmc/core/sdio.c index 694a212..0fda778 100644 --- a/drivers/mmc/core/sdio.c +++ b/drivers/mmc/core/sdio.c @@ -751,7 +751,7 @@ static int mmc_sdio_init_card(struct mmc_host *host, u32 ocr, * Read CSD, before selecting the card */ if (!oldcard && card->type == MMC_TYPE_SD_COMBO) { - err = mmc_sd_get_csd(host, card); + err = mmc_sd_get_csd(card); if (err) goto remove; -- 1.9.1