Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1737164

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

From Masahiro Yamada <yamada.masahiro@socionext.com>
Newsgroups linux.kernel
Subject [PATCH v2 05/12] mtd: nand: denali: slight clean up of denali_wait_for_irq()
Date 2017-09-22 05:50 +0200
Message-ID <usn8u-19x-13@gated-at.bofh.it> (permalink)
References <usn8t-19x-5@gated-at.bofh.it>
Organization linux.* mail to news gateway

Show all headers | View raw


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(-)

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;
 	}
 
-- 
2.7.4

Back to linux.kernel | Previous | NextPrevious in thread | Next in thread | Find similar | Unroll thread


Thread

[PATCH v2 00/12] mtd: nand: denali: more clean-ups Masahiro Yamada <yamada.masahiro@socionext.com> - 2017-09-22 05:50 +0200
  [PATCH v2 11/12] mtd: nand: denali: support direct addressing mode Masahiro Yamada <yamada.masahiro@socionext.com> - 2017-09-22 05:50 +0200
  [PATCH v2 05/12] mtd: nand: denali: slight clean up of denali_wait_for_irq() Masahiro Yamada <yamada.masahiro@socionext.com> - 2017-09-22 05:50 +0200
  [PATCH v2 10/12] mtd: nand: denali: remove unneeded init of ECC_ENABLE register Masahiro Yamada <yamada.masahiro@socionext.com> - 2017-09-22 05:50 +0200
  [PATCH v2 07/12] mtd: nand: denali: use more FIELD_PREP / FIELD_GET where appropriate Masahiro Yamada <yamada.masahiro@socionext.com> - 2017-09-22 06:00 +0200
  [PATCH v2 02/12] mtd: nand: denali: prefix detect_max_banks() with denali_ Masahiro Yamada <yamada.masahiro@socionext.com> - 2017-09-22 06:00 +0200
  [PATCH v2 06/12] mtd: nand: denali: clean up macros with <linux/bitfield.h> Masahiro Yamada <yamada.masahiro@socionext.com> - 2017-09-22 06:00 +0200
  [PATCH v2 09/12] mtd: nand: denali: use upper/lower_32_bits() macro for clean-up Masahiro Yamada <yamada.masahiro@socionext.com> - 2017-09-22 06:00 +0200
  [PATCH v2 08/12] mtd: nand: denali: clean up comments Masahiro Yamada <yamada.masahiro@socionext.com> - 2017-09-22 06:00 +0200
  Re: [PATCH v2 00/12] mtd: nand: denali: more clean-ups Boris Brezillon <boris.brezillon@free-electrons.com> - 2017-09-22 12:10 +0200

csiph-web