All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] perf jevents: Remove unused variables
@ 2019-05-15 11:19 Zenghui Yu
  2019-05-15 19:12 ` Arnaldo Carvalho de Melo
  2019-05-18  9:27 ` [tip:perf/core] perf jevents: Remove unused variable tip-bot for Zenghui Yu
  0 siblings, 2 replies; 3+ messages in thread
From: Zenghui Yu @ 2019-05-15 11:19 UTC (permalink / raw)
  To: acme, acme, peterz, mingo
  Cc: alexander.shishkin, jolsa, namhyung, john.garry, wanghaibin.wang,
	linux-kernel, Zenghui Yu

Fix 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@huawei.com>
---
 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 68c92bb..92e60fd 100644
--- a/tools/perf/pmu-events/jevents.c
+++ b/tools/perf/pmu-events/jevents.c
@@ -414,7 +414,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)
-- 
1.8.3.1



^ permalink raw reply related	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2019-05-18  9:28 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2019-05-15 11:19 [PATCH] perf jevents: Remove unused variables Zenghui Yu
2019-05-15 19:12 ` Arnaldo Carvalho de Melo
2019-05-18  9:27 ` [tip:perf/core] perf jevents: Remove unused variable tip-bot for Zenghui Yu

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.