Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 2cb80d18 authored by Santosh Mardi's avatar Santosh Mardi Committed by Gerrit - the friendly Code Review server
Browse files

drivers: soc: qcom: code clean up for rimps_memlat driver



Remove unused variable in hotplug path.

Change-Id: Ida006e8f39adc741ee63f63cdddcb51ddd2804f1
Signed-off-by: default avatarSantosh Mardi <gsantosh@codeaurora.org>
parent dc426891
Loading
Loading
Loading
Loading
+0 −5
Original line number Diff line number Diff line
@@ -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;
}