aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMasahiro Yamada <yamada.masahiro@socionext.com>2018-07-25 04:46:14 -0400
committerUlf Hansson <ulf.hansson@linaro.org>2018-08-01 06:02:03 -0400
commite401bfdadd2dc0f59bf76220236285130f072190 (patch)
tree9137616fbe4ca130de71bdd9f157e7568d1353bd
parent5c99826b27d0afd4c05c2013385b17037f579cf9 (diff)
mmc: tmio: remove unneeded variable in tmio_mmc_start_command()
Pass TMIO_MASK_CMD to tmio_mmc_enable_mmc_irqs() directly, and remove the variable, irq_mask. Signed-off-by: Masahiro Yamada <yamada.masahiro@socionext.com> Reviewed-by: Wolfram Sang <wsa+renesas@sang-engineering.com> Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org>
-rw-r--r--drivers/mmc/host/tmio_mmc_core.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/drivers/mmc/host/tmio_mmc_core.c b/drivers/mmc/host/tmio_mmc_core.c
index 72ac806e0c76..261b4d62d2b1 100644
--- a/drivers/mmc/host/tmio_mmc_core.c
+++ b/drivers/mmc/host/tmio_mmc_core.c
@@ -322,7 +322,6 @@ static int tmio_mmc_start_command(struct tmio_mmc_host *host,
322{ 322{
323 struct mmc_data *data = host->data; 323 struct mmc_data *data = host->data;
324 int c = cmd->opcode; 324 int c = cmd->opcode;
325 u32 irq_mask = TMIO_MASK_CMD;
326 325
327 switch (mmc_resp_type(cmd)) { 326 switch (mmc_resp_type(cmd)) {
328 case MMC_RSP_NONE: c |= RESP_NONE; break; 327 case MMC_RSP_NONE: c |= RESP_NONE; break;
@@ -362,7 +361,7 @@ static int tmio_mmc_start_command(struct tmio_mmc_host *host,
362 c |= TRANSFER_READ; 361 c |= TRANSFER_READ;
363 } 362 }
364 363
365 tmio_mmc_enable_mmc_irqs(host, irq_mask); 364 tmio_mmc_enable_mmc_irqs(host, TMIO_MASK_CMD);
366 365
367 /* Fire off the command */ 366 /* Fire off the command */
368 sd_ctrl_write32_as_16_and_16(host, CTL_ARG_REG, cmd->arg); 367 sd_ctrl_write32_as_16_and_16(host, CTL_ARG_REG, cmd->arg);