summaryrefslogtreecommitdiff
path: root/drivers/dma/pl330.c
diff options
context:
space:
mode:
authorLars-Peter Clausen <lars@metafoo.de>2014-07-06 20:32:24 +0200
committerVinod Koul <vinod.koul@intel.com>2014-07-15 22:01:03 +0530
commitbe025329fd4223f3442fffc35f8255bd64d0d526 (patch)
treefa5663014131830475b400d0303dc722836a97c9 /drivers/dma/pl330.c
parentd5cef121ffa6a2525107e4c58e126ea885911ff7 (diff)
dmaengine: pl330: Remove unused mc_len field from _pl330_req struct
The mc_len is initialized but its value is never read again, so remove it. Signed-off-by: Lars-Peter Clausen <lars@metafoo.de> Signed-off-by: Vinod Koul <vinod.koul@intel.com>
Diffstat (limited to 'drivers/dma/pl330.c')
-rw-r--r--drivers/dma/pl330.c5
1 files changed, 1 insertions, 4 deletions
diff --git a/drivers/dma/pl330.c b/drivers/dma/pl330.c
index 80a17a84ab75..453ce106b5fc 100644
--- a/drivers/dma/pl330.c
+++ b/drivers/dma/pl330.c
@@ -398,8 +398,6 @@ enum pl330_cond {
struct _pl330_req {
u32 mc_bus;
void *mc_cpu;
- /* Number of bytes taken to setup MC for the req */
- u32 mc_len;
struct pl330_req *r;
};
@@ -999,7 +997,6 @@ static void mark_free(struct pl330_thread *thrd, int idx)
struct _pl330_req *req = &thrd->req[idx];
_emit_END(0, req->mc_cpu);
- req->mc_len = 0;
thrd->req_running = -1;
}
@@ -1536,8 +1533,8 @@ static int pl330_submit_req(void *ch_id, struct pl330_req *r)
/* Hook the request */
thrd->lstenq = idx;
- thrd->req[idx].mc_len = _setup_req(0, thrd, idx, &xs);
thrd->req[idx].r = r;
+ _setup_req(0, thrd, idx, &xs);
ret = 0;