]> git.karo-electronics.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)
committerFancy Fang <B47543@freescale.com>
Tue, 17 Dec 2013 10:27:53 +0000 (18:27 +0800)
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 90e1faad36749b4e38cf138471309d5051f695a5..113f6ae86cd2b05625e5828d2d54d84141de1679 100644 (file)
@@ -1118,11 +1118,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);