summaryrefslogtreecommitdiff
path: root/drivers/perf
diff options
context:
space:
mode:
authorYueHaibing <yuehaibing@huawei.com>2019-01-23 04:56:31 +0300
committerWill Deacon <will.deacon@arm.com>2019-01-31 13:55:05 +0300
commitcf2d65ec1d21f986bc128697aff5f52fef1ff12a (patch)
treefbf15b135fe94c48782e15ef546ab11390aecdd3 /drivers/perf
parentb36506787cf19a3eb1116d5dcdef2e2ad5b2933a (diff)
downloadlinux-cf2d65ec1d21f986bc128697aff5f52fef1ff12a.tar.xz
perf: xgene: Remove set but not used variable 'config'
Fixes gcc '-Wunused-but-set-variable' warning: drivers/perf/xgene_pmu.c: In function 'xgene_perf_stop': drivers/perf/xgene_pmu.c:1055:6: warning: variable 'config' set but not used [-Wunused-but-set-variable] It never used since introduction. Signed-off-by: Yue Haibing <yuehaibing@huawei.com> Signed-off-by: Will Deacon <will.deacon@arm.com>
Diffstat (limited to 'drivers/perf')
-rw-r--r--drivers/perf/xgene_pmu.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/drivers/perf/xgene_pmu.c b/drivers/perf/xgene_pmu.c
index 0dc9ff0f8894..26b2c269e285 100644
--- a/drivers/perf/xgene_pmu.c
+++ b/drivers/perf/xgene_pmu.c
@@ -1057,7 +1057,6 @@ static void xgene_perf_start(struct perf_event *event, int flags)
static void xgene_perf_stop(struct perf_event *event, int flags)
{
struct hw_perf_event *hw = &event->hw;
- u64 config;
if (hw->state & PERF_HES_UPTODATE)
return;
@@ -1069,7 +1068,6 @@ static void xgene_perf_stop(struct perf_event *event, int flags)
if (hw->state & PERF_HES_UPTODATE)
return;
- config = hw->config;
xgene_perf_read(event);
hw->state |= PERF_HES_UPTODATE;
}