Commit be025329 authored by Lars-Peter Clausen's avatar Lars-Peter Clausen Committed by Vinod Koul

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: default avatarLars-Peter Clausen <lars@metafoo.de>
Signed-off-by: default avatarVinod Koul <vinod.koul@intel.com>
parent d5cef121
...@@ -398,8 +398,6 @@ enum pl330_cond { ...@@ -398,8 +398,6 @@ enum pl330_cond {
struct _pl330_req { struct _pl330_req {
u32 mc_bus; u32 mc_bus;
void *mc_cpu; void *mc_cpu;
/* Number of bytes taken to setup MC for the req */
u32 mc_len;
struct pl330_req *r; struct pl330_req *r;
}; };
...@@ -999,7 +997,6 @@ static void mark_free(struct pl330_thread *thrd, int idx) ...@@ -999,7 +997,6 @@ static void mark_free(struct pl330_thread *thrd, int idx)
struct _pl330_req *req = &thrd->req[idx]; struct _pl330_req *req = &thrd->req[idx];
_emit_END(0, req->mc_cpu); _emit_END(0, req->mc_cpu);
req->mc_len = 0;
thrd->req_running = -1; thrd->req_running = -1;
} }
...@@ -1536,8 +1533,8 @@ static int pl330_submit_req(void *ch_id, struct pl330_req *r) ...@@ -1536,8 +1533,8 @@ static int pl330_submit_req(void *ch_id, struct pl330_req *r)
/* Hook the request */ /* Hook the request */
thrd->lstenq = idx; thrd->lstenq = idx;
thrd->req[idx].mc_len = _setup_req(0, thrd, idx, &xs);
thrd->req[idx].r = r; thrd->req[idx].r = r;
_setup_req(0, thrd, idx, &xs);
ret = 0; ret = 0;
......
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