tracing: Drop unneeded assignment in ring_buffer_resize()
authorLukas Bulwahn <lukas.bulwahn@gmail.com>
Mon, 14 Dec 2020 08:45:03 +0000 (09:45 +0100)
committerSteven Rostedt (VMware) <rostedt@goodmis.org>
Mon, 14 Dec 2020 17:09:54 +0000 (12:09 -0500)
Since commit 0a1754b2a97e ("ring-buffer: Return 0 on success from
ring_buffer_resize()"), computing the size is not needed anymore.

Drop unneeded assignment in ring_buffer_resize().

Link: https://lkml.kernel.org/r/20201214084503.3079-1-lukas.bulwahn@gmail.com
Signed-off-by: Lukas Bulwahn <lukas.bulwahn@gmail.com>
Signed-off-by: Steven Rostedt (VMware) <rostedt@goodmis.org>
kernel/trace/ring_buffer.c

index f09d3f5..8b57251 100644 (file)
@@ -1974,8 +1974,6 @@ int ring_buffer_resize(struct trace_buffer *buffer, unsigned long size,
        if (nr_pages < 2)
                nr_pages = 2;
 
-       size = nr_pages * BUF_PAGE_SIZE;
-
        /* prevent another thread from changing buffer sizes */
        mutex_lock(&buffer->mutex);