From: Adrian Hunter <adrian.hunter@intel.com>
To: Victor Shih <victorshihgli@gmail.com>, ulf.hansson@linaro.org
Cc: linux-mmc@vger.kernel.org, linux-kernel@vger.kernel.org,
benchuanggli@gmail.com, HL.Liu@genesyslogic.com.tw,
Greg.tu@genesyslogic.com.tw, kernel test robot <lkp@intel.com>,
Ben Chuang <ben.chuang@genesyslogic.com.tw>,
Victor Shih <victor.shih@genesyslogic.com.tw>
Subject: Re: [PATCH V1] mmc: sdhci-uhs2: remove unnecessary variables
Date: Wed, 30 Oct 2024 14:45:58 +0200 [thread overview]
Message-ID: <9507bd21-e0ad-4bb0-b3f1-747201e28280@intel.com> (raw)
In-Reply-To: <20241030112216.4057-2-victorshihgli@gmail.com>
On 30/10/24 13:22, Victor Shih wrote:
> From: Victor Shih <victor.shih@genesyslogic.com.tw>
>
> There are unnecessary variables in the sdhci_uhs2_send_command()
> that will generate a warning when building the kernel.
>
> Reported-by: kernel test robot <lkp@intel.com>
> Closes: https://lore.kernel.org/oe-kbuild-all/202410252107.y9EgrTbA-lkp@intel.com/
> Signed-off-by: Ben Chuang <ben.chuang@genesyslogic.com.tw>
> Signed-off-by: Victor Shih <victor.shih@genesyslogic.com.tw>
Acked-by: Adrian Hunter <adrian.hunter@intel.com>
> ---
> drivers/mmc/host/sdhci-uhs2.c | 25 -------------------------
> 1 file changed, 25 deletions(-)
>
> diff --git a/drivers/mmc/host/sdhci-uhs2.c b/drivers/mmc/host/sdhci-uhs2.c
> index c488c6d56015..43820eb5a7ea 100644
> --- a/drivers/mmc/host/sdhci-uhs2.c
> +++ b/drivers/mmc/host/sdhci-uhs2.c
> @@ -684,7 +684,6 @@ static void __sdhci_uhs2_send_command(struct sdhci_host *host, struct mmc_comman
>
> static bool sdhci_uhs2_send_command(struct sdhci_host *host, struct mmc_command *cmd)
> {
> - int flags;
> u32 mask;
> unsigned long timeout;
>
> @@ -714,30 +713,6 @@ static bool sdhci_uhs2_send_command(struct sdhci_host *host, struct mmc_command
>
> sdhci_uhs2_set_transfer_mode(host, cmd);
>
> - if ((cmd->flags & MMC_RSP_136) && (cmd->flags & MMC_RSP_BUSY)) {
> - WARN_ONCE(1, "Unsupported response type!\n");
> - /*
> - * This does not happen in practice because 136-bit response
> - * commands never have busy waiting, so rather than complicate
> - * the error path, just remove busy waiting and continue.
> - */
> - cmd->flags &= ~MMC_RSP_BUSY;
> - }
> -
> - if (!(cmd->flags & MMC_RSP_PRESENT))
> - flags = SDHCI_CMD_RESP_NONE;
> - else if (cmd->flags & MMC_RSP_136)
> - flags = SDHCI_CMD_RESP_LONG;
> - else if (cmd->flags & MMC_RSP_BUSY)
> - flags = SDHCI_CMD_RESP_SHORT_BUSY;
> - else
> - flags = SDHCI_CMD_RESP_SHORT;
> -
> - if (cmd->flags & MMC_RSP_CRC)
> - flags |= SDHCI_CMD_CRC;
> - if (cmd->flags & MMC_RSP_OPCODE)
> - flags |= SDHCI_CMD_INDEX;
> -
> timeout = jiffies;
> if (host->data_timeout)
> timeout += nsecs_to_jiffies(host->data_timeout);
next prev parent reply other threads:[~2024-10-30 12:46 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-10-30 11:22 [PATCH V1] mmc: sdhci-uhs2: correction of incorrect type in argument Victor Shih
2024-10-30 11:22 ` [PATCH V1] mmc: sdhci-uhs2: remove unnecessary variables Victor Shih
2024-10-30 12:45 ` Adrian Hunter [this message]
2024-10-31 16:39 ` Ulf Hansson
2024-10-30 13:07 ` [PATCH V1] mmc: sdhci-uhs2: correction of incorrect type in argument Adrian Hunter
2024-10-31 16:39 ` Ulf Hansson
2024-11-01 10:40 ` Victor Shih
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=9507bd21-e0ad-4bb0-b3f1-747201e28280@intel.com \
--to=adrian.hunter@intel.com \
--cc=Greg.tu@genesyslogic.com.tw \
--cc=HL.Liu@genesyslogic.com.tw \
--cc=ben.chuang@genesyslogic.com.tw \
--cc=benchuanggli@gmail.com \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-mmc@vger.kernel.org \
--cc=lkp@intel.com \
--cc=ulf.hansson@linaro.org \
--cc=victor.shih@genesyslogic.com.tw \
--cc=victorshihgli@gmail.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox