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 @@ -1742,7 +1742,7 @@ static void pl330_dotask(unsigned long data)
1742
1742
/* Returns 1 if state was updated, 0 otherwise */
1743
1743
static int pl330_update (struct pl330_dmac * pl330 )
1744
1744
{
1745
- struct dma_pl330_desc * descdone , * tmp ;
1745
+ struct dma_pl330_desc * descdone ;
1746
1746
unsigned long flags ;
1747
1747
void __iomem * regs ;
1748
1748
u32 val ;
@@ -1822,7 +1822,9 @@ static int pl330_update(struct pl330_dmac *pl330)
1822
1822
}
1823
1823
1824
1824
/* Now that we are in no hurry, do the callbacks */
1825
- list_for_each_entry_safe (descdone , tmp , & pl330 -> req_done , rqd ) {
1825
+ while (!list_empty (& pl330 -> req_done )) {
1826
+ descdone = list_first_entry (& pl330 -> req_done ,
1827
+ struct dma_pl330_desc , rqd );
1826
1828
list_del (& descdone -> rqd );
1827
1829
spin_unlock_irqrestore (& pl330 -> lock , flags );
1828
1830
dma_pl330_rqcb (descdone , PL330_ERR_NONE );
You can’t perform that action at this time.
0 commit comments