Commit f66ce0da authored by Sudeep Holla's avatar Sudeep Holla

ARM: vexpress/spc: remove unused variable perf_stat_reg

The variable 'perf_stat_reg' in ve_spc_set_performance is assigned a
value but that is never used.

So let's remove the variable 'perf_stat_reg'
Reported-by: default avatarDavid Binderman <dcb314@hotmail.com>
Cc: Liviu Dudau <liviu.dudau@arm.com>
Cc: Lorenzo Pieralisi <lorenzo.pieralisi@arm.com>
Signed-off-by: default avatarSudeep Holla <sudeep.holla@arm.com>
parent 1a695a90
...@@ -319,17 +319,15 @@ static int ve_spc_waitforcompletion(int req_type) ...@@ -319,17 +319,15 @@ static int ve_spc_waitforcompletion(int req_type)
static int ve_spc_set_performance(int cluster, u32 freq) static int ve_spc_set_performance(int cluster, u32 freq)
{ {
u32 perf_cfg_reg, perf_stat_reg; u32 perf_cfg_reg;
int ret, perf, req_type; int ret, perf, req_type;
if (cluster_is_a15(cluster)) { if (cluster_is_a15(cluster)) {
req_type = CA15_DVFS; req_type = CA15_DVFS;
perf_cfg_reg = PERF_LVL_A15; perf_cfg_reg = PERF_LVL_A15;
perf_stat_reg = PERF_REQ_A15;
} else { } else {
req_type = CA7_DVFS; req_type = CA7_DVFS;
perf_cfg_reg = PERF_LVL_A7; perf_cfg_reg = PERF_LVL_A7;
perf_stat_reg = PERF_REQ_A7;
} }
perf = ve_spc_find_performance_index(cluster, freq); perf = ve_spc_find_performance_index(cluster, freq);
......
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