Re: [PATCH -next] tracing: Remove set but not used variable 'ret'

From: Steven Rostedt
Date: Tue Jun 15 2021 - 11:39:29 EST


On Tue, 15 Jun 2021 09:59:10 +0800
"libaokun (A)" <libaokun1@xxxxxxxxxx> wrote:

> ping
>
> 在 2021/5/27 17:10, Baokun Li 写道:
> > Fixes gcc '-Wunused-but-set-variable' warning:
> >
> > kernel/trace/trace_events_hist.c: In function 'unregister_field_var_hists':
> > kernel/trace/trace_events_hist.c:5228:6: warning:
> > variable ‘ret’ set but not used [-Wunused-but-set-variable]
> >
> > It never used since introduction.

Which was a bug.

> >
> > Signed-off-by: Baokun Li <libaokun1@xxxxxxxxxx>
>

This was fixed differently:

https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git/commit/?id=6c610dba6e2beb1a16ac309672181d0090fb8d30

-- Steve