diff options
author | Brian Norris <computersforpeace@gmail.com> | 2014-09-19 09:37:19 -0700 |
---|---|---|
committer | Brian Norris <computersforpeace@gmail.com> | 2014-09-19 09:38:54 -0700 |
commit | ba5f2bc2afbf598aa2efb35542cd0d40fce76c45 (patch) | |
tree | 8da8add1fc2d00784c1ac5bfa5a0791a2a5ea45f /drivers/mtd | |
parent | a81b4708838261784fa473582607a6c687c39d00 (diff) | |
download | blackbird-op-linux-ba5f2bc2afbf598aa2efb35542cd0d40fce76c45.tar.gz blackbird-op-linux-ba5f2bc2afbf598aa2efb35542cd0d40fce76c45.zip |
mtd: denali: remove another set-but-unused variable
The variable "irq_status" in denali_read_page_raw() is set, but not used.
Signed-off-by: Masahiro Yamada <yamada.m@jp.panasonic.com>
Signed-off-by: Brian Norris <computersforpeace@gmail.com>
Diffstat (limited to 'drivers/mtd')
-rw-r--r-- | drivers/mtd/nand/denali.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/drivers/mtd/nand/denali.c b/drivers/mtd/nand/denali.c index cd586010f2ec..e5c39d2d659f 100644 --- a/drivers/mtd/nand/denali.c +++ b/drivers/mtd/nand/denali.c @@ -1218,7 +1218,6 @@ static int denali_read_page_raw(struct mtd_info *mtd, struct nand_chip *chip, dma_addr_t addr = denali->buf.dma_buf; size_t size = denali->mtd.writesize + denali->mtd.oobsize; - uint32_t irq_status; uint32_t irq_mask = INTR_STATUS__DMA_CMD_COMP; if (page != denali->page) { @@ -1237,7 +1236,7 @@ static int denali_read_page_raw(struct mtd_info *mtd, struct nand_chip *chip, denali_setup_dma(denali, DENALI_READ); /* wait for operation to complete */ - irq_status = wait_for_irq(denali, irq_mask); + wait_for_irq(denali, irq_mask); dma_sync_single_for_cpu(denali->dev, addr, size, DMA_FROM_DEVICE); |