OSDN Git Service
(root)
/
sagit-ice-cold
/
kernel_xiaomi_msm8998.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
93e3c8a
)
mtd: denali: remove a set-but-unused variable
author
Masahiro Yamada
<yamada.m@jp.panasonic.com>
Tue, 9 Sep 2014 02:01:55 +0000
(11:01 +0900)
committer
Brian Norris
<computersforpeace@gmail.com>
Mon, 15 Sep 2014 23:31:24 +0000
(16:31 -0700)
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>
drivers/mtd/nand/denali.c
patch
|
blob
|
history
diff --git
a/drivers/mtd/nand/denali.c
b/drivers/mtd/nand/denali.c
index
4cb1497
..
cd58601
100644
(file)
--- 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);