[PATCH] perf dlfilter: Drop unused variable

From: Salvatore Bonaccorso
Date: Tue Nov 23 2021 - 16:18:35 EST


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.

Signed-off-by: Salvatore Bonaccorso <carnil@xxxxxxxxxx>
---
tools/perf/dlfilters/dlfilter-test-api-v0.c | 2 --
1 file changed, 2 deletions(-)

diff --git a/tools/perf/dlfilters/dlfilter-test-api-v0.c b/tools/perf/dlfilters/dlfilter-test-api-v0.c
index 7565a1852c74..b17eb52a0694 100644
--- a/tools/perf/dlfilters/dlfilter-test-api-v0.c
+++ b/tools/perf/dlfilters/dlfilter-test-api-v0.c
@@ -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);
--
2.34.0