The head list empty check in function pxpdma_dostart_work()
is meaningless, since this function only can be called when
there is some pxp task in the head list, that is to say head
list is not empty.
Signed-off-by: Fancy Fang <B47543@freescale.com>
struct pxp_tx_desc *desc = NULL;
spin_lock_irqsave(&pxp->lock, flags);
- if (list_empty(&head)) {
- pxp->pxp_ongoing = 0;
- spin_unlock_irqrestore(&pxp->lock, flags);
- return;
- }
desc = list_entry(head.next, struct pxp_tx_desc, list);
pxp_chan = to_pxp_channel(desc->txd.chan);