mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-08 12:58:12 -04:00
drivers: soc: qcom: code clean up for rimps_memlat driver
Remove unused variable in hotplug path. Change-Id: Ida006e8f39adc741ee63f63cdddcb51ddd2804f1 Signed-off-by: Santosh Mardi <gsantosh@codeaurora.org>
This commit is contained in:
parent
dc4268916b
commit
2cb80d18ee
1 changed files with 0 additions and 5 deletions
|
|
@ -691,7 +691,6 @@ static void free_mon_evs(struct memlat_mon *mon, cpumask_t *mask)
|
|||
|
||||
static int memlat_hp_restart_events(unsigned int cpu, bool cpu_up)
|
||||
{
|
||||
struct perf_event_attr *attr = alloc_attr();
|
||||
struct memlat_cpu_grp *cpu_grp = per_cpu(per_cpu_grp, cpu);
|
||||
struct scmi_memlat_vendor_ops *ops;
|
||||
struct memlat_mon *mon;
|
||||
|
|
@ -699,9 +698,6 @@ static int memlat_hp_restart_events(unsigned int cpu, bool cpu_up)
|
|||
unsigned int i = 0;
|
||||
cpumask_t mask = CPU_MASK_NONE;
|
||||
|
||||
if (!attr)
|
||||
return -ENOMEM;
|
||||
|
||||
if (!cpu_grp)
|
||||
goto exit;
|
||||
|
||||
|
|
@ -763,7 +759,6 @@ static int memlat_hp_restart_events(unsigned int cpu, bool cpu_up)
|
|||
}
|
||||
set_pmu_cache_flag(cpu_up ? PMU_CACHE_INVALID : PMU_CACHE_VALID, cpu);
|
||||
exit:
|
||||
kfree(attr);
|
||||
return ret;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue