mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [PATCH] perf pmu-events: Removed unused variable
@ 2019-02-14  2:57 Bo YU
  0 siblings, 0 replies; only message in thread
From: Bo YU @ 2019-02-14  2:57 UTC (permalink / raw)
  To: peterz, mingo, acme, alexander.shishkin; +Cc: Bo Yu, linux-kernel

From: Bo Yu <tsu.yubo@gmail.com>

Compiling kernel when W=1, it will throw a 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;

Removed the unused variable

Signed-off-by: Bo Yu <tsu.yubo@gmail.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 68c92bb599ee..92e60fd11fdd 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)
-- 
2.11.0


^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2019-02-14  2:57 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-02-14  2:57 [PATCH] perf pmu-events: Removed unused variable Bo YU

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®