summaryrefslogtreecommitdiff
path: root/kernel
diff options
context:
space:
mode:
authorHaowen Bai <baihaowen@meizu.com>2022-05-27 13:03:54 +0300
committerIngo Molnar <mingo@kernel.org>2022-05-27 13:14:16 +0300
commit8b4dd2d8627e88dc3bd71bf29c48aaae2b69572b (patch)
tree352dceb99b3e9d3503cbb11c8df3529336a4b00a /kernel
parent86dca369075b3e310c3c0adb0f81e513c562b5e4 (diff)
downloadlinux-8b4dd2d8627e88dc3bd71bf29c48aaae2b69572b.tar.xz
perf/core: Remove unused local variable
Drop LIST_HEAD() where the variable it declares is never used. Compiler probably never warned us, because the LIST_HEAD() initializer is technically 'usage'. [ mingo: Tweak changelog. ] Signed-off-by: Haowen Bai <baihaowen@meizu.com> Signed-off-by: Ingo Molnar <mingo@kernel.org> Link: https://lore.kernel.org/r/1653645835-29206-1-git-send-email-baihaowen@meizu.com
Diffstat (limited to 'kernel')
-rw-r--r--kernel/events/core.c1
1 files changed, 0 insertions, 1 deletions
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;