From: Masahiro Yamada Date: Wed, 25 Jul 2018 08:46:14 +0000 (+0900) Subject: mmc: tmio: remove unneeded variable in tmio_mmc_start_command() X-Git-Tag: v4.19-rc1~96^2~1 X-Git-Url: http://git.osdn.net/view?a=commitdiff_plain;h=e401bfdadd2dc0f59bf76220236285130f072190;p=uclinux-h8%2Flinux.git 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 Reviewed-by: Wolfram Sang Signed-off-by: Ulf Hansson --- 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, { struct mmc_data *data = host->data; int c = cmd->opcode; - u32 irq_mask = TMIO_MASK_CMD; switch (mmc_resp_type(cmd)) { case MMC_RSP_NONE: c |= RESP_NONE; break; @@ -362,7 +361,7 @@ static int tmio_mmc_start_command(struct tmio_mmc_host *host, c |= TRANSFER_READ; } - tmio_mmc_enable_mmc_irqs(host, irq_mask); + tmio_mmc_enable_mmc_irqs(host, TMIO_MASK_CMD); /* Fire off the command */ sd_ctrl_write32_as_16_and_16(host, CTL_ARG_REG, cmd->arg);