Commit 08714f60 authored by Russell King - ARM Linux's avatar Russell King - ARM Linux Committed by Vinod Koul

dmaengine: mv_xor: remove write-only is_complete_cookie

mv_xor's is_complete_cookie is only ever written to, but never read.
This is silly, remove the write-only structure member.
Signed-off-by: default avatarRussell King <rmk+kernel@arm.linux.org.uk>
Tested-by: default avatarLinus Walleij <linus.walleij@linaro.org>
Reviewed-by: default avatarLinus Walleij <linus.walleij@linaro.org>
Acked-by: default avatarJassi Brar <jassisinghbrar@gmail.com>
[imx-sdma.c & mxs-dma.c]
Tested-by: default avatarShawn Guo <shawn.guo@linaro.org>
Signed-off-by: default avatarVinod Koul <vinod.koul@linux.intel.com>
parent a1c46016
...@@ -826,7 +826,6 @@ static enum dma_status mv_xor_status(struct dma_chan *chan, ...@@ -826,7 +826,6 @@ static enum dma_status mv_xor_status(struct dma_chan *chan,
last_used = chan->cookie; last_used = chan->cookie;
last_complete = mv_chan->completed_cookie; last_complete = mv_chan->completed_cookie;
mv_chan->is_complete_cookie = cookie;
dma_set_tx_state(txstate, last_complete, last_used, 0); dma_set_tx_state(txstate, last_complete, last_used, 0);
ret = dma_async_is_complete(cookie, last_complete, last_used); ret = dma_async_is_complete(cookie, last_complete, last_used);
......
...@@ -109,7 +109,6 @@ struct mv_xor_chan { ...@@ -109,7 +109,6 @@ struct mv_xor_chan {
#ifdef USE_TIMER #ifdef USE_TIMER
unsigned long cleanup_time; unsigned long cleanup_time;
u32 current_on_last_cleanup; u32 current_on_last_cleanup;
dma_cookie_t is_complete_cookie;
#endif #endif
}; };
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment