diff options
author | Haowen Bai <baihaowen@meizu.com> | 2022-05-27 12:03:54 +0200 |
---|---|---|
committer | Ingo Molnar <mingo@kernel.org> | 2022-05-27 12:14:16 +0200 |
commit | 8b4dd2d8627e88dc3bd71bf29c48aaae2b69572b (patch) | |
tree | 352dceb99b3e9d3503cbb11c8df3529336a4b00a /kernel | |
parent | perf/x86/intel: Fix event constraints for ICL (diff) | |
download | linux-8b4dd2d8627e88dc3bd71bf29c48aaae2b69572b.tar.xz linux-8b4dd2d8627e88dc3bd71bf29c48aaae2b69572b.zip |
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.c | 1 |
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; |