[<prev] [next>] [day] [month] [year] [list]
Message-Id: <20201214084503.3079-1-lukas.bulwahn@gmail.com>
Date: Mon, 14 Dec 2020 09:45:03 +0100
From: Lukas Bulwahn <lukas.bulwahn@...il.com>
To: Qiujun Huang <hqjagain@...il.com>,
Steven Rostedt <rostedt@...dmis.org>,
Ingo Molnar <mingo@...hat.com>
Cc: kernel-janitors@...r.kernel.org, linux-kernel@...r.kernel.org,
Lukas Bulwahn <lukas.bulwahn@...il.com>
Subject: [PATCH] trace: drop unneeded assignment in ring_buffer_resize()
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().
Signed-off-by: Lukas Bulwahn <lukas.bulwahn@...il.com>
---
kernel/trace/ring_buffer.c | 2 --
1 file changed, 2 deletions(-)
diff --git a/kernel/trace/ring_buffer.c b/kernel/trace/ring_buffer.c
index 91db9d032a0c..95ecfb107e3e 100644
--- a/kernel/trace/ring_buffer.c
+++ b/kernel/trace/ring_buffer.c
@@ -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);
--
2.17.1
Powered by blists - more mailing lists