Commit 888569db authored by Salvatore Bonaccorso's avatar Salvatore Bonaccorso Committed by Arnaldo Carvalho de Melo

perf dlfilter: Drop unused variable

Compiling tools/perf/dlfilters/dlfilter-test-api-v0.c result in:

	checking for stdlib.h... dlfilters/dlfilter-test-api-v0.c: In function ‘filter_event’:
	dlfilters/dlfilter-test-api-v0.c:311:29: warning: unused variable ‘d’ [-Wunused-variable]
	  311 |         struct filter_data *d = data;
	      |

So remove the  variable now.
Reviewed-by: default avatarGerman Gomez <german.gomez@arm.com>
Signed-off-by: default avatarSalvatore Bonaccorso <carnil@debian.org>
Acked-by: default avatarAdrian Hunter <adrian.hunter@intel.com>
Cc: Alexander Shishkin <alexander.shishkin@linux.intel.com>
Cc: Ingo Molnar <mingo@redhat.com>
Cc: Jiri Olsa <jolsa@redhat.com>
Cc: Mark Rutland <mark.rutland@arm.com>
Cc: Namhyung Kim <namhyung@kernel.org>
Cc: Peter Zijlstra <peterz@infradead.org>
Link: https://lore.kernel.org/r/20211123211821.132924-1-carnil@debian.orgSigned-off-by: default avatarArnaldo Carvalho de Melo <acme@redhat.com>
parent b0fde9c6
......@@ -308,8 +308,6 @@ int filter_event_early(void *data, const struct perf_dlfilter_sample *sample, vo
int filter_event(void *data, const struct perf_dlfilter_sample *sample, void *ctx)
{
struct filter_data *d = data;
pr_debug("%s API\n", __func__);
return do_checks(data, sample, ctx, false);
......
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