perf pmu-events: Removed unused variable
PATCH 1/1 perf pmu-events: Removed unused variable
From: Bo Yu <[email protected]>
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 <[email protected]>
--- tools/perf/pmu-events/jevents.c | 1 - 1 file changed, 1 deletion(-)
tools/perf/pmu-events/jevents.c +0 -1
@@ -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)
Signature · 1 line
2.11.0