summaryrefslogtreecommitdiffstats
path: root/drivers/mtd
diff options
context:
space:
mode:
authorMasahiro Yamada <yamada.masahiro@socionext.com>2017-09-22 12:46:42 +0900
committerBoris Brezillon <boris.brezillon@free-electrons.com>2017-09-22 09:04:23 +0200
commitfdd4d0836bdb0dd6a4e7e588d7dce2de37f8531d (patch)
tree80670f670df5dfcad1452f8f8ae925c8b0c72a8f /drivers/mtd
parent586a2c52909df453ed1b6239283744b0851ccf81 (diff)
downloadblackbird-op-linux-fdd4d0836bdb0dd6a4e7e588d7dce2de37f8531d.tar.gz
blackbird-op-linux-fdd4d0836bdb0dd6a4e7e588d7dce2de37f8531d.zip
mtd: nand: denali: slight clean up of denali_wait_for_irq()
This function has a local variable "irq_mask" and its value is the same as denali->irq_mask. Clean up the code a little. Signed-off-by: Masahiro Yamada <yamada.masahiro@socionext.com> Signed-off-by: Boris Brezillon <boris.brezillon@free-electrons.com>
Diffstat (limited to 'drivers/mtd')
-rw-r--r--drivers/mtd/nand/denali.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/mtd/nand/denali.c b/drivers/mtd/nand/denali.c
index e7b25de2e579..3cc56decbadb 100644
--- a/drivers/mtd/nand/denali.c
+++ b/drivers/mtd/nand/denali.c
@@ -191,7 +191,7 @@ static uint32_t denali_wait_for_irq(struct denali_nand_info *denali,
msecs_to_jiffies(1000));
if (!time_left) {
dev_err(denali->dev, "timeout while waiting for irq 0x%x\n",
- denali->irq_mask);
+ irq_mask);
return 0;
}
OpenPOWER on IntegriCloud