diff options
| author | Sascha Hauer <[email protected]> | 2023-02-03 12:15:09 +0000 |
|---|---|---|
| committer | Will Deacon <[email protected]> | 2023-02-03 13:04:22 +0000 |
| commit | 7f49b037397631dc5ec8f6eed67d218edf094fa2 (patch) | |
| tree | 9b949e1cd2e71058f3ebb097a45e14c32351e3a2 /drivers/perf/fsl_imx8_ddr_perf.c | |
| parent | perf: arm_spe: Support new SPEv1.2/v8.7 'not taken' event (diff) | |
| download | kernel-7f49b037397631dc5ec8f6eed67d218edf094fa2.tar.gz kernel-7f49b037397631dc5ec8f6eed67d218edf094fa2.zip | |
drivers/perf: fsl_imx8_ddr_perf: Remove set-but-not-used variable
active_events is set but not used, remove it.
Signed-off-by: Sascha Hauer <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Will Deacon <[email protected]>
Diffstat (limited to 'drivers/perf/fsl_imx8_ddr_perf.c')
| -rw-r--r-- | drivers/perf/fsl_imx8_ddr_perf.c | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/drivers/perf/fsl_imx8_ddr_perf.c b/drivers/perf/fsl_imx8_ddr_perf.c index 8e058e08fe81..5222ba1e79d0 100644 --- a/drivers/perf/fsl_imx8_ddr_perf.c +++ b/drivers/perf/fsl_imx8_ddr_perf.c @@ -97,7 +97,6 @@ struct ddr_pmu { struct hlist_node node; struct device *dev; struct perf_event *events[NUM_COUNTERS]; - int active_events; enum cpuhp_state cpuhp_state; const struct fsl_ddr_devtype_data *devtype_data; int irq; @@ -530,7 +529,6 @@ static int ddr_perf_event_add(struct perf_event *event, int flags) } pmu->events[counter] = event; - pmu->active_events++; hwc->idx = counter; hwc->state |= PERF_HES_STOPPED; @@ -562,7 +560,6 @@ static void ddr_perf_event_del(struct perf_event *event, int flags) ddr_perf_event_stop(event, PERF_EF_UPDATE); ddr_perf_free_counter(pmu, counter); - pmu->active_events--; hwc->idx = -1; } |
