[<prev] [next>] [day] [month] [year] [list]
Message-Id: <20220906072159.337188-1-ye.xingchen@zte.com.cn>
Date: Tue, 6 Sep 2022 07:21:59 +0000
From: cgel.zte@...il.com
To: rostedt@...dmis.org
Cc: mingo@...hat.com, linux-kernel@...r.kernel.org,
ye xingchen <ye.xingchen@....com.cn>,
Zeal Robot <zealci@....com.cn>
Subject: [PATCH linux-next] tracing: Remove the unneeded result variable
From: ye xingchen <ye.xingchen@....com.cn>
Return the value trace_remove_event_call() directly instead of storing
it in another redundant variable.
Reported-by: Zeal Robot <zealci@....com.cn>
Signed-off-by: ye xingchen <ye.xingchen@....com.cn>
---
kernel/trace/trace_events_synth.c | 5 +----
1 file changed, 1 insertion(+), 4 deletions(-)
diff --git a/kernel/trace/trace_events_synth.c b/kernel/trace/trace_events_synth.c
index 5e8c07aef071..bf57801b139b 100644
--- a/kernel/trace/trace_events_synth.c
+++ b/kernel/trace/trace_events_synth.c
@@ -831,11 +831,8 @@ static int register_synth_event(struct synth_event *event)
static int unregister_synth_event(struct synth_event *event)
{
struct trace_event_call *call = &event->call;
- int ret;
-
- ret = trace_remove_event_call(call);
- return ret;
+ return trace_remove_event_call(call);
}
static void free_synth_event(struct synth_event *event)
--
2.25.1
Powered by blists - more mailing lists