Re: [PATCH linux-next] ring_buffer: remove redundant ret variables

From: Steven Rostedt
Date: Mon Nov 28 2022 - 13:17:25 EST


On Mon, 28 Nov 2022 21:10:00 +0800 (CST)
<zhang.songyi@xxxxxxxxxx> wrote:

> From: zhang songyi <zhang.songyi@xxxxxxxxxx>
>
> Return values from ring_buffer_bytes_cpu(), ring_buffer_overrun_cpu(),
> ring_buffer_commit_overrun_cpu(), ring_buffer_dropped_events_cpu()
> directly instead of taking this in another redundant variable.
>
> Signed-off-by: zhang songyi <zhang.songyi@xxxxxxxxxx>
> ---

Fine, I may add this, as it looks like leftovers from 8aabee573dff
("ring-buffer: remove unneeded get_online_cpus"). But they make no real
difference staying as is.

-- Steve