OSDN Git Service
(root)
/
android-x86
/
kernel.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
c85f3a9
)
tracing: Simplify memory recycle of trace_define_field
author
Wenji Huang
<wenji.huang@oracle.com>
Wed, 24 Feb 2010 07:40:26 +0000
(15:40 +0800)
committer
Steven Rostedt
<rostedt@goodmis.org>
Thu, 25 Feb 2010 15:42:55 +0000
(10:42 -0500)
Discard freeing field->type since it is not necessary.
Reviewed-by: Li Zefan <lizf@cn.fujitsu.com>
Signed-off-by: Wenji Huang <wenji.huang@oracle.com>
LKML-Reference: <
1266997226
-6833-5-git-send-email-wenji.huang@oracle.com>
Signed-off-by: Steven Rostedt <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
c2a3077
..
3f972ad
100644
(file)
--- a/
kernel/trace/trace_events.c
+++ b/
kernel/trace/trace_events.c
@@
-60,10
+60,8
@@
int trace_define_field(struct ftrace_event_call *call, const char *type,
return 0;
err:
- if (field)
{
+ if (field)
kfree(field->name);
- kfree(field->type);
- }
kfree(field);
return -ENOMEM;