[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-ID: <1653645835-29206-1-git-send-email-baihaowen@meizu.com>
Date: Fri, 27 May 2022 18:03:54 +0800
From: Haowen Bai <baihaowen@...zu.com>
To: Peter Zijlstra <peterz@...radead.org>,
Ingo Molnar <mingo@...hat.com>,
Arnaldo Carvalho de Melo <acme@...nel.org>,
Mark Rutland <mark.rutland@....com>,
Alexander Shishkin <alexander.shishkin@...ux.intel.com>,
Jiri Olsa <jolsa@...nel.org>,
"Namhyung Kim" <namhyung@...nel.org>
CC: Haowen Bai <baihaowen@...zu.com>,
<linux-perf-users@...r.kernel.org>, <linux-kernel@...r.kernel.org>
Subject: [PATCH] perf/core: drop the useless LIST_HEAD in perf_event_remove_on_exec()
Drop LIST_HEAD where the variable it declares is never used.
Signed-off-by: Haowen Bai <baihaowen@...zu.com>
---
kernel/events/core.c | 1 -
1 file changed, 1 deletion(-)
diff --git a/kernel/events/core.c b/kernel/events/core.c
index 950b25c3f210..80782cddb1da 100644
--- a/kernel/events/core.c
+++ b/kernel/events/core.c
@@ -4257,7 +4257,6 @@ static void perf_event_remove_on_exec(int ctxn)
{
struct perf_event_context *ctx, *clone_ctx = NULL;
struct perf_event *event, *next;
- LIST_HEAD(free_list);
unsigned long flags;
bool modified = false;
--
2.7.4
Powered by blists - more mailing lists