Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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>

authored by

Masahiro Yamada and committed by
Ulf Hansson
e401bfda 5c99826b

+1 -2
+1 -2
drivers/mmc/host/tmio_mmc_core.c
··· 322 322 { 323 323 struct mmc_data *data = host->data; 324 324 int c = cmd->opcode; 325 - u32 irq_mask = TMIO_MASK_CMD; 326 325 327 326 switch (mmc_resp_type(cmd)) { 328 327 case MMC_RSP_NONE: c |= RESP_NONE; break; ··· 361 362 c |= TRANSFER_READ; 362 363 } 363 364 364 - tmio_mmc_enable_mmc_irqs(host, irq_mask); 365 + tmio_mmc_enable_mmc_irqs(host, TMIO_MASK_CMD); 365 366 366 367 /* Fire off the command */ 367 368 sd_ctrl_write32_as_16_and_16(host, CTL_ARG_REG, cmd->arg);