]> git.kernelconcepts.de Git - karo-tx-linux.git/commitdiff
ENGR00292369 PXP: remove unnecessary head list empty check
authorFancy Fang <B47543@freescale.com>
Tue, 17 Dec 2013 07:30:58 +0000 (15:30 +0800)
committerLothar Waßmann <LW@KARO-electronics.de>
Wed, 20 Aug 2014 08:06:49 +0000 (10:06 +0200)
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>
drivers/dma/pxp/pxp_dma_v2.c

index 9b6db29570233cb99983762c769a3720fa5f52cc..9102dd6abeabb4ec6d0c6b51744c5d0aab8a79e5 100644 (file)
@@ -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);