Commit 8e8f515d authored by Zenghui Yu's avatar Zenghui Yu Committed by Arnaldo Carvalho de Melo

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: default avatarZenghui Yu <yuzenghui@huawei.com>
Cc: Alexander Shishkin <alexander.shishkin@linux.intel.com>
Cc: Jiri Olsa <jolsa@redhat.com>
Cc: John Garry <john.garry@huawei.com>
Cc: Namhyung Kim <namhyung@kernel.org>
Cc: Peter Zijlstra <peterz@infradead.org>
Cc: wanghaibin.wang@huawei.com
Link: http://lkml.kernel.org/r/1557919169-23972-1-git-send-email-yuzenghui@huawei.comSigned-off-by: default avatarArnaldo Carvalho de Melo <acme@redhat.com>
parent d94cfbab
...@@ -415,7 +415,6 @@ static int save_arch_std_events(void *data, char *name, char *event, ...@@ -415,7 +415,6 @@ static int save_arch_std_events(void *data, char *name, char *event,
char *metric_name, char *metric_group) char *metric_name, char *metric_group)
{ {
struct event_struct *es; struct event_struct *es;
struct stat *sb = data;
es = malloc(sizeof(*es)); es = malloc(sizeof(*es));
if (!es) if (!es)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment