OSDN Git Service
(root)
/
tomoyo
/
tomoyo-test1.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
86dca36
)
perf/core: Remove unused local variable
author
Haowen Bai
<baihaowen@meizu.com>
Fri, 27 May 2022 10:03:54 +0000
(18:03 +0800)
committer
Ingo Molnar
<mingo@kernel.org>
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 <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
kernel/events/core.c
patch
|
blob
|
history
diff --git
a/kernel/events/core.c
b/kernel/events/core.c
index
950b25c
..
80782cd
100644
(file)
--- 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;