mtd: denali: remove a set-but-unused variable
Linux-MTD Mailing List
linux-mtd at lists.infradead.org
Wed Oct 15 23:59:05 PDT 2014
Gitweb: http://git.infradead.org/?p=mtd-2.6.git;a=commit;h=55ab9ec99bbfb4450dfa9bc0fd9e2c5052f4c3f7
Commit: 55ab9ec99bbfb4450dfa9bc0fd9e2c5052f4c3f7
Parent: 93e3c8adf6fcf2204ca334237b92c7f8cdafce6f
Author: Masahiro Yamada <yamada.m at jp.panasonic.com>
AuthorDate: Tue Sep 9 11:01:55 2014 +0900
Committer: Brian Norris <computersforpeace at gmail.com>
CommitDate: Mon Sep 15 16:31:24 2014 -0700
mtd: denali: remove a set-but-unused variable
The variable "retry" in wait_for_irq() is set, but not used.
Signed-off-by: Masahiro Yamada <yamada.m at jp.panasonic.com>
Reviewed-by: Josh Triplett <josh at joshtriplett.org>
Signed-off-by: Brian Norris <computersforpeace at gmail.com>
---
drivers/mtd/nand/denali.c | 2 --
1 file changed, 2 deletions(-)
diff --git a/drivers/mtd/nand/denali.c b/drivers/mtd/nand/denali.c
index 4cb1497..cd58601 100644
--- a/drivers/mtd/nand/denali.c
+++ b/drivers/mtd/nand/denali.c
@@ -697,7 +697,6 @@ static uint32_t wait_for_irq(struct denali_nand_info *denali, uint32_t irq_mask)
{
unsigned long comp_res;
uint32_t intr_status;
- bool retry = false;
unsigned long timeout = msecs_to_jiffies(1000);
do {
@@ -717,7 +716,6 @@ static uint32_t wait_for_irq(struct denali_nand_info *denali, uint32_t irq_mask)
* need to wait again
*/
spin_unlock_irq(&denali->irq_lock);
- retry = true;
}
} while (comp_res != 0);
More information about the linux-mtd-cvs
mailing list