Skip to content

Commit 8b4dd2d

Browse files
Lotte-BaiIngo Molnar
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 <[email protected]> Signed-off-by: Ingo Molnar <[email protected]> Link: https://lore.kernel.org/r/[email protected]
1 parent 86dca36 commit 8b4dd2d

File tree

1 file changed

+0
-1
lines changed

1 file changed

+0
-1
lines changed

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)