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 @@ -1720,7 +1720,7 @@ static void pl330_dotask(unsigned long data)
1720
1720
/* Returns 1 if state was updated, 0 otherwise */
1721
1721
static int pl330_update (struct pl330_dmac * pl330 )
1722
1722
{
1723
- struct dma_pl330_desc * descdone , * tmp ;
1723
+ struct dma_pl330_desc * descdone ;
1724
1724
unsigned long flags ;
1725
1725
void __iomem * regs ;
1726
1726
u32 val ;
@@ -1800,7 +1800,9 @@ static int pl330_update(struct pl330_dmac *pl330)
1800
1800
}
1801
1801
1802
1802
/* Now that we are in no hurry, do the callbacks */
1803
- list_for_each_entry_safe (descdone , tmp , & pl330 -> req_done , rqd ) {
1803
+ while (!list_empty (& pl330 -> req_done )) {
1804
+ descdone = list_first_entry (& pl330 -> req_done ,
1805
+ struct dma_pl330_desc , rqd );
1804
1806
list_del (& descdone -> rqd );
1805
1807
spin_unlock_irqrestore (& pl330 -> lock , flags );
1806
1808
dma_pl330_rqcb (descdone , PL330_ERR_NONE );
You can’t perform that action at this time.
0 commit comments