aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/bus
diff options
context:
space:
mode:
authorWill Deacon <will.deacon@arm.com>2016-02-26 11:14:25 -0500
committerWill Deacon <will.deacon@arm.com>2016-02-29 18:23:17 -0500
commit3b23d77b4258558a317157b18cf418eeea4ca788 (patch)
treec782e9ef311afcc599eeb1d308aba305dbfb3402 /drivers/bus
parent6ec3070298ab8ea56aa694c6160c51d47a8d0830 (diff)
arm-cci: remove unused variable
hw_counter is unused in the PMU IRQ handler, so remove it. Signed-off-by: Will Deacon <will.deacon@arm.com>
Diffstat (limited to 'drivers/bus')
-rw-r--r--drivers/bus/arm-cci.c3
1 files changed, 0 insertions, 3 deletions
diff --git a/drivers/bus/arm-cci.c b/drivers/bus/arm-cci.c
index afe64ab2c06b..a49b28378d59 100644
--- a/drivers/bus/arm-cci.c
+++ b/drivers/bus/arm-cci.c
@@ -1077,13 +1077,10 @@ static irqreturn_t pmu_handle_irq(int irq_num, void *dev)
1077 */ 1077 */
1078 for (idx = 0; idx <= CCI_PMU_CNTR_LAST(cci_pmu); idx++) { 1078 for (idx = 0; idx <= CCI_PMU_CNTR_LAST(cci_pmu); idx++) {
1079 struct perf_event *event = events->events[idx]; 1079 struct perf_event *event = events->events[idx];
1080 struct hw_perf_event *hw_counter;
1081 1080
1082 if (!event) 1081 if (!event)
1083 continue; 1082 continue;
1084 1083
1085 hw_counter = &event->hw;
1086
1087 /* Did this counter overflow? */ 1084 /* Did this counter overflow? */
1088 if (!(pmu_read_register(cci_pmu, idx, CCI_PMU_OVRFLW) & 1085 if (!(pmu_read_register(cci_pmu, idx, CCI_PMU_OVRFLW) &
1089 CCI_PMU_OVRFLW_FLAG)) 1086 CCI_PMU_OVRFLW_FLAG))