提交 55ab9ec9 编写于 作者: M Masahiro Yamada 提交者: Brian Norris

mtd: denali: remove a set-but-unused variable

The variable "retry" in wait_for_irq() is set, but not used.
Signed-off-by: NMasahiro Yamada <yamada.m@jp.panasonic.com>
Reviewed-by: NJosh Triplett <josh@joshtriplett.org>
Signed-off-by: NBrian Norris <computersforpeace@gmail.com>
上级 93e3c8ad
......@@ -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);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册