|
@@ -697,7 +697,6 @@ static uint32_t wait_for_irq(struct denali_nand_info *denali, uint32_t irq_mask)
|
|
{
|
|
{
|
|
unsigned long comp_res;
|
|
unsigned long comp_res;
|
|
uint32_t intr_status;
|
|
uint32_t intr_status;
|
|
- bool retry = false;
|
|
|
|
unsigned long timeout = msecs_to_jiffies(1000);
|
|
unsigned long timeout = msecs_to_jiffies(1000);
|
|
|
|
|
|
do {
|
|
do {
|
|
@@ -717,7 +716,6 @@ static uint32_t wait_for_irq(struct denali_nand_info *denali, uint32_t irq_mask)
|
|
* need to wait again
|
|
* need to wait again
|
|
*/
|
|
*/
|
|
spin_unlock_irq(&denali->irq_lock);
|
|
spin_unlock_irq(&denali->irq_lock);
|
|
- retry = true;
|
|
|
|
}
|
|
}
|
|
} while (comp_res != 0);
|
|
} while (comp_res != 0);
|
|
|
|
|