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:
e7bb66f
)
tracing: Remove unnecessary NULL assignment
author
Wang ShaoBo
<bobo.shaobowang@huawei.com>
Wed, 23 Nov 2022 06:51:24 +0000
(14:51 +0800)
committer
Steven Rostedt (Google)
<rostedt@goodmis.org>
Sat, 18 Feb 2023 19:34:36 +0000
(14:34 -0500)
Remove unnecessary NULL assignment int create_new_subsystem().
Link:
https://lkml.kernel.org/r/20221123065124.3982439-1-bobo.shaobowang@huawei.com
Signed-off-by: Wang ShaoBo <bobo.shaobowang@huawei.com>
Signed-off-by: Steven Rostedt (Google) <rostedt@goodmis.org>
kernel/trace/trace_events.c
patch
|
blob
|
history
diff --git
a/kernel/trace/trace_events.c
b/kernel/trace/trace_events.c
index
cf3fd74
..
b52c4d7
100644
(file)
--- a/
kernel/trace/trace_events.c
+++ b/
kernel/trace/trace_events.c
@@
-2261,8
+2261,6
@@
create_new_subsystem(const char *name)
if (!system->name)
goto out_free;
- system->filter = NULL;
-
system->filter = kzalloc(sizeof(struct event_filter), GFP_KERNEL);
if (!system->filter)
goto out_free;