projects
/
linux.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
4998897
)
drivers/perf: fsl_imx8_ddr_perf: Remove set-but-not-used variable
author
Sascha Hauer
<s.hauer@pengutronix.de>
Fri, 3 Feb 2023 12:15:09 +0000
(13:15 +0100)
committer
Will Deacon
<will@kernel.org>
Fri, 3 Feb 2023 13:04:22 +0000
(13:04 +0000)
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>
drivers/perf/fsl_imx8_ddr_perf.c
patch
|
blob
|
history
diff --git
a/drivers/perf/fsl_imx8_ddr_perf.c
b/drivers/perf/fsl_imx8_ddr_perf.c
index 8e058e08fe81072dde8093116456fafffd757186..5222ba1e79d0e140a7d0ab2ff0c76d4855dcdee6 100644
(file)
--- 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;
}