From: Fancy Fang Date: Tue, 17 Dec 2013 07:30:58 +0000 (+0800) Subject: ENGR00292369 PXP: remove unnecessary head list empty check X-Git-Tag: KARO-TX6-2014-07-10~104 X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=22a1e2f07808962b42fb696ada2948bbd4847cd3;p=karo-tx-linux.git ENGR00292369 PXP: remove unnecessary head list empty check 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 --- diff --git a/drivers/dma/pxp/pxp_dma_v2.c b/drivers/dma/pxp/pxp_dma_v2.c index 9b6db2957023..9102dd6abeab 100644 --- a/drivers/dma/pxp/pxp_dma_v2.c +++ b/drivers/dma/pxp/pxp_dma_v2.c @@ -1112,11 +1112,6 @@ static void pxpdma_dostart_work(struct pxps *pxp) 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);