Commit 0839875e0c197ded56bbae820e699f26d6fa2697
1 parent
3dce017137
Exists in
master
and in
7 other branches
async_tx: make async_tx_test_ack a boolean routine
Signed-off-by: Dan Williams <dan.j.williams@intel.com>
Showing 1 changed file with 3 additions and 5 deletions Side-by-side Diff
include/linux/dmaengine.h
... | ... | @@ -375,16 +375,14 @@ |
375 | 375 | void dma_async_tx_descriptor_init(struct dma_async_tx_descriptor *tx, |
376 | 376 | struct dma_chan *chan); |
377 | 377 | |
378 | -static inline void | |
379 | -async_tx_ack(struct dma_async_tx_descriptor *tx) | |
378 | +static inline void async_tx_ack(struct dma_async_tx_descriptor *tx) | |
380 | 379 | { |
381 | 380 | tx->flags |= DMA_CTRL_ACK; |
382 | 381 | } |
383 | 382 | |
384 | -static inline int | |
385 | -async_tx_test_ack(struct dma_async_tx_descriptor *tx) | |
383 | +static inline bool async_tx_test_ack(struct dma_async_tx_descriptor *tx) | |
386 | 384 | { |
387 | - return tx->flags & DMA_CTRL_ACK; | |
385 | + return (tx->flags & DMA_CTRL_ACK) == DMA_CTRL_ACK; | |
388 | 386 | } |
389 | 387 | |
390 | 388 | #define first_dma_cap(mask) __first_dma_cap(&(mask)) |