Commit e401bfda authored by Masahiro Yamada's avatar Masahiro Yamada Committed by Ulf Hansson

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: default avatarMasahiro Yamada <yamada.masahiro@socionext.com>
Reviewed-by: default avatarWolfram Sang <wsa+renesas@sang-engineering.com>
Signed-off-by: default avatarUlf Hansson <ulf.hansson@linaro.org>
parent 5c99826b
...@@ -322,7 +322,6 @@ static int tmio_mmc_start_command(struct tmio_mmc_host *host, ...@@ -322,7 +322,6 @@ static int tmio_mmc_start_command(struct tmio_mmc_host *host,
{ {
struct mmc_data *data = host->data; struct mmc_data *data = host->data;
int c = cmd->opcode; int c = cmd->opcode;
u32 irq_mask = TMIO_MASK_CMD;
switch (mmc_resp_type(cmd)) { switch (mmc_resp_type(cmd)) {
case MMC_RSP_NONE: c |= RESP_NONE; break; case MMC_RSP_NONE: c |= RESP_NONE; break;
...@@ -362,7 +361,7 @@ static int tmio_mmc_start_command(struct tmio_mmc_host *host, ...@@ -362,7 +361,7 @@ static int tmio_mmc_start_command(struct tmio_mmc_host *host,
c |= TRANSFER_READ; c |= TRANSFER_READ;
} }
tmio_mmc_enable_mmc_irqs(host, irq_mask); tmio_mmc_enable_mmc_irqs(host, TMIO_MASK_CMD);
/* Fire off the command */ /* Fire off the command */
sd_ctrl_write32_as_16_and_16(host, CTL_ARG_REG, cmd->arg); sd_ctrl_write32_as_16_and_16(host, CTL_ARG_REG, cmd->arg);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment