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>
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;
};
struct _pl330_req *req = &thrd->req[idx];
_emit_END(0, req->mc_cpu);
- req->mc_len = 0;
thrd->req_running = -1;
}
/* 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;