File tree 1 file changed +4
-2
lines changed
1 file changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -1510,7 +1510,7 @@ static void pl330_dotask(unsigned long data)
1510
1510
/* Returns 1 if state was updated, 0 otherwise */
1511
1511
static int pl330_update (struct pl330_dmac * pl330 )
1512
1512
{
1513
- struct dma_pl330_desc * descdone , * tmp ;
1513
+ struct dma_pl330_desc * descdone ;
1514
1514
unsigned long flags ;
1515
1515
void __iomem * regs ;
1516
1516
u32 val ;
@@ -1588,7 +1588,9 @@ static int pl330_update(struct pl330_dmac *pl330)
1588
1588
}
1589
1589
1590
1590
/* Now that we are in no hurry, do the callbacks */
1591
- list_for_each_entry_safe (descdone , tmp , & pl330 -> req_done , rqd ) {
1591
+ while (!list_empty (& pl330 -> req_done )) {
1592
+ descdone = list_first_entry (& pl330 -> req_done ,
1593
+ struct dma_pl330_desc , rqd );
1592
1594
list_del (& descdone -> rqd );
1593
1595
spin_unlock_irqrestore (& pl330 -> lock , flags );
1594
1596
dma_pl330_rqcb (descdone , PL330_ERR_NONE );
You can’t perform that action at this time.
0 commit comments