Skip to content

Commit

Permalink
drivers/perf: fsl_imx8_ddr_perf: Remove set-but-not-used variable
Browse files Browse the repository at this point in the history
active_events is set but not used, remove it.

Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Link: https://lore.kernel.org/r/20230203121509.3580245-1-s.hauer@pengutronix.de
Signed-off-by: Will Deacon <will@kernel.org>
  • Loading branch information
Sascha Hauer authored and Will Deacon committed Feb 3, 2023
1 parent 4998897 commit 7f49b03
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions drivers/perf/fsl_imx8_ddr_perf.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down Expand Up @@ -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;
Expand Down Expand Up @@ -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;
}

Expand Down

0 comments on commit 7f49b03

Please sign in to comment.