]> Git Repo - linux.git/commitdiff
perf/core: Remove unused local variable
authorHaowen Bai <[email protected]>
Fri, 27 May 2022 10:03:54 +0000 (18:03 +0800)
committerIngo Molnar <[email protected]>
Fri, 27 May 2022 10:14:16 +0000 (12:14 +0200)
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]
kernel/events/core.c

index 950b25c3f210350fae5674fc3863e858650bea58..80782cddb1dabf6f917b877acf262ead2cd911ae 100644 (file)
@@ -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;
 
This page took 0.087405 seconds and 4 git commands to generate.