Skip to content

Commit 8b4dd2d

Browse files
Lotte-Baiingomolnar
authored andcommitted
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
1 parent 86dca36 commit 8b4dd2d

1 file changed

Lines changed: 0 additions & 1 deletion

File tree

kernel/events/core.c

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4257,7 +4257,6 @@ static void perf_event_remove_on_exec(int ctxn)
42574257
{
42584258
struct perf_event_context *ctx, *clone_ctx = NULL;
42594259
struct perf_event *event, *next;
4260-
LIST_HEAD(free_list);
42614260
unsigned long flags;
42624261
bool modified = false;
42634262

0 commit comments

Comments
 (0)