Skip to content

Commit

Permalink
arm-cci: remove unused variable
Browse files Browse the repository at this point in the history
hw_counter is unused in the PMU IRQ handler, so remove it.

Signed-off-by: Will Deacon <will.deacon@arm.com>
  • Loading branch information
wildea01 committed Feb 29, 2016
1 parent 6ec3070 commit 3b23d77
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions drivers/bus/arm-cci.c
Original file line number Diff line number Diff line change
Expand Up @@ -1077,13 +1077,10 @@ static irqreturn_t pmu_handle_irq(int irq_num, void *dev)
*/
for (idx = 0; idx <= CCI_PMU_CNTR_LAST(cci_pmu); idx++) {
struct perf_event *event = events->events[idx];
struct hw_perf_event *hw_counter;

if (!event)
continue;

hw_counter = &event->hw;

/* Did this counter overflow? */
if (!(pmu_read_register(cci_pmu, idx, CCI_PMU_OVRFLW) &
CCI_PMU_OVRFLW_FLAG))
Expand Down

0 comments on commit 3b23d77

Please sign in to comment.