summaryrefslogtreecommitdiff
path: root/drivers/mtd/nand/denali.c
diff options
context:
space:
mode:
authorMasahiro Yamada <yamada.m@jp.panasonic.com>2014-09-09 06:01:55 +0400
committerBrian Norris <computersforpeace@gmail.com>2014-09-16 03:31:24 +0400
commit55ab9ec99bbfb4450dfa9bc0fd9e2c5052f4c3f7 (patch)
tree78496e2dd60c87e59326d35aff57c2aba5db6bdc /drivers/mtd/nand/denali.c
parent93e3c8adf6fcf2204ca334237b92c7f8cdafce6f (diff)
downloadlinux-55ab9ec99bbfb4450dfa9bc0fd9e2c5052f4c3f7.tar.xz
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@jp.panasonic.com> Reviewed-by: Josh Triplett <josh@joshtriplett.org> Signed-off-by: Brian Norris <computersforpeace@gmail.com>
Diffstat (limited to 'drivers/mtd/nand/denali.c')
-rw-r--r--drivers/mtd/nand/denali.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/drivers/mtd/nand/denali.c b/drivers/mtd/nand/denali.c
index 4cb1497fe1c0..cd586010f2ec 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);