Skip to content

Commit cf2d65e

Browse files
YueHaibingwildea01
authored andcommitted
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>
1 parent b365067 commit cf2d65e

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

drivers/perf/xgene_pmu.c

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1057,7 +1057,6 @@ static void xgene_perf_start(struct perf_event *event, int flags)
10571057
static void xgene_perf_stop(struct perf_event *event, int flags)
10581058
{
10591059
struct hw_perf_event *hw = &event->hw;
1060-
u64 config;
10611060

10621061
if (hw->state & PERF_HES_UPTODATE)
10631062
return;
@@ -1069,7 +1068,6 @@ static void xgene_perf_stop(struct perf_event *event, int flags)
10691068
if (hw->state & PERF_HES_UPTODATE)
10701069
return;
10711070

1072-
config = hw->config;
10731071
xgene_perf_read(event);
10741072
hw->state |= PERF_HES_UPTODATE;
10751073
}

0 commit comments

Comments
 (0)