diff options
author | Kaixu Xia <kaixuxia@tencent.com> | 2020-11-14 00:02:40 +0800 |
---|---|---|
committer | Steven Rostedt (VMware) <rostedt@goodmis.org> | 2020-11-13 12:19:52 -0500 |
commit | b111545d26c0d66dd9aae668d9373669e752b075 (patch) | |
tree | cdfc44cb1c8f71168ffc746d7f45dd0855b53455 /kernel/trace/synth_event_gen_test.c | |
parent | 2860cd8a235375df3c8ec8039d9fe5eb2f658b86 (diff) |
tracing: Remove the useless value assignment in test_create_synth_event()
The value of variable ret is overwritten on the delete branch in the
test_create_synth_event() and we care more about the above error than
this delete portion. Remove it.
Link: https://lkml.kernel.org/r/1605283360-6804-1-git-send-email-kaixuxia@tencent.com
Reported-by: Tosk Robot <tencent_os_robot@tencent.com>
Signed-off-by: Kaixu Xia <kaixuxia@tencent.com>
Signed-off-by: Steven Rostedt (VMware) <rostedt@goodmis.org>
Diffstat (limited to 'kernel/trace/synth_event_gen_test.c')
-rw-r--r-- | kernel/trace/synth_event_gen_test.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/kernel/trace/synth_event_gen_test.c b/kernel/trace/synth_event_gen_test.c index edd912cd14aa..a4b4bbf8c3bf 100644 --- a/kernel/trace/synth_event_gen_test.c +++ b/kernel/trace/synth_event_gen_test.c @@ -307,7 +307,7 @@ static int __init test_create_synth_event(void) return ret; delete: /* We got an error after creating the event, delete it */ - ret = synth_event_delete("create_synth_test"); + synth_event_delete("create_synth_test"); goto out; } |