diff mbox series

[v2,05/12] mtd: nand: denali: slight clean up of denali_wait_for_irq()

Message ID 1506052009-8285-6-git-send-email-yamada.masahiro@socionext.com
State Accepted
Commit fdd4d0836bdb0dd6a4e7e588d7dce2de37f8531d
Headers show
Series [v2,01/12] mtd: nand: denali: squash setup_ecc_for_xfer() helper into caller | expand

Commit Message

Masahiro Yamada Sept. 22, 2017, 3:46 a.m. UTC
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>

---

Changes in v2: None

 drivers/mtd/nand/denali.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

-- 
2.7.4
diff mbox series

Patch

diff --git a/drivers/mtd/nand/denali.c b/drivers/mtd/nand/denali.c
index e7b25de..3cc56de 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;
 	}