[tip:perf/core] perf jevents: Remove unused variable

From: tip-bot for Zenghui Yu
Date: Sat May 18 2019 - 05:30:33 EST


Commit-ID: 8e8f515d567f9ec1d960e9fdb117d39753b7504d
Gitweb: https://git.kernel.org/tip/8e8f515d567f9ec1d960e9fdb117d39753b7504d
Author: Zenghui Yu <yuzenghui@xxxxxxxxxx>
AuthorDate: Wed, 15 May 2019 11:19:29 +0000
Committer: Arnaldo Carvalho de Melo <acme@xxxxxxxxxx>
CommitDate: Wed, 15 May 2019 16:36:49 -0300

perf jevents: Remove unused variable

Address gcc warning:

pmu-events/jevents.c: In function âsave_arch_std_eventsâ:
pmu-events/jevents.c:417:15: warning: unused variable âsbâ [-Wunused-variable]
struct stat *sb = data;
^~

Signed-off-by: Zenghui Yu <yuzenghui@xxxxxxxxxx>
Cc: Alexander Shishkin <alexander.shishkin@xxxxxxxxxxxxxxx>
Cc: Jiri Olsa <jolsa@xxxxxxxxxx>
Cc: John Garry <john.garry@xxxxxxxxxx>
Cc: Namhyung Kim <namhyung@xxxxxxxxxx>
Cc: Peter Zijlstra <peterz@xxxxxxxxxxxxx>
Cc: wanghaibin.wang@xxxxxxxxxx
Link: http://lkml.kernel.org/r/1557919169-23972-1-git-send-email-yuzenghui@xxxxxxxxxx
Signed-off-by: Arnaldo Carvalho de Melo <acme@xxxxxxxxxx>
---
tools/perf/pmu-events/jevents.c | 1 -
1 file changed, 1 deletion(-)

diff --git a/tools/perf/pmu-events/jevents.c b/tools/perf/pmu-events/jevents.c
index daaea5003d4a..58f77fd0f59f 100644
--- a/tools/perf/pmu-events/jevents.c
+++ b/tools/perf/pmu-events/jevents.c
@@ -415,7 +415,6 @@ static int save_arch_std_events(void *data, char *name, char *event,
char *metric_name, char *metric_group)
{
struct event_struct *es;
- struct stat *sb = data;

es = malloc(sizeof(*es));
if (!es)