We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4c2e9ba commit 83c1961Copy full SHA for 83c1961
drivers/dma/at_hdmac.c
@@ -1461,14 +1461,8 @@ atc_tx_status(struct dma_chan *chan,
1461
int bytes = 0;
1462
1463
ret = dma_cookie_status(chan, cookie, txstate);
1464
- if (ret == DMA_COMPLETE)
+ if (ret == DMA_COMPLETE || !txstate)
1465
return ret;
1466
- /*
1467
- * There's no point calculating the residue if there's
1468
- * no txstate to store the value.
1469
- */
1470
- if (!txstate)
1471
- return DMA_ERROR;
1472
1473
spin_lock_irqsave(&atchan->lock, flags);
1474
0 commit comments