From 22a1e2f07808962b42fb696ada2948bbd4847cd3 Mon Sep 17 00:00:00 2001 From: Fancy Fang Date: Tue, 17 Dec 2013 15:30:58 +0800 Subject: [PATCH] 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 --- drivers/dma/pxp/pxp_dma_v2.c | 5 ----- 1 file changed, 5 deletions(-) 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); -- 2.39.5