tracing: Remove the unneeded result variable
PATCH 1/1 tracing: Remove the unneeded result variable
From: ye xingchen <[email protected]>
Return the value trace_remove_event_call() directly instead of storing it in another redundant variable.
Reported-by Zeal Robot <[email protected]>
Signed-off-by ye xingchen <[email protected]>
--- kernel/trace/trace_events_synth.c | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-)
kernel/trace/trace_events_synth.c +1 -4
@@ -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)
Signature · 1 line
2.25.1