Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1261758 > unrolled thread

[for-next][PATCH 08/13] ring-buffer: rb_is_reader_page() can return boolean

Started bySteven Rostedt <rostedt@goodmis.org>
First post2015-11-03 19:10 +0100
Last post2015-11-03 19:10 +0100
Articles 1 — 1 participant

Back to article view | Back to linux.kernel

This discussion starts older than the indexed window; earlier articles aren't shown. The article labeled Started by below is the oldest one visible, not the original post.


Contents

  [for-next][PATCH 08/13] ring-buffer: rb_is_reader_page() can return boolean Steven Rostedt <rostedt@goodmis.org> - 2015-11-03 19:10 +0100

#1261758 — [for-next][PATCH 08/13] ring-buffer: rb_is_reader_page() can return boolean

FromSteven Rostedt <rostedt@goodmis.org>
Date2015-11-03 19:10 +0100
Subject[for-next][PATCH 08/13] ring-buffer: rb_is_reader_page() can return boolean
Message-ID<qqObV-6gN-33@gated-at.bofh.it>
From: Yaowei Bai <bywxiaobai@163.com>

Make rb_is_reader_page() return bool to improve readability due to this
particular function only using either true or false as its return value.

No functional change.

Link: http://lkml.kernel.org/r/1443537816-5788-4-git-send-email-bywxiaobai@163.com

Signed-off-by: Yaowei Bai <bywxiaobai@163.com>
Signed-off-by: Steven Rostedt <rostedt@goodmis.org>
---
 kernel/trace/ring_buffer.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/kernel/trace/ring_buffer.c b/kernel/trace/ring_buffer.c
index fc347f8b1bca..26a948f3187f 100644
--- a/kernel/trace/ring_buffer.c
+++ b/kernel/trace/ring_buffer.c
@@ -829,7 +829,7 @@ rb_is_head_page(struct ring_buffer_per_cpu *cpu_buffer,
  * writer is ever on it, the previous pointer never points
  * back to the reader page.
  */
-static int rb_is_reader_page(struct buffer_page *page)
+static bool rb_is_reader_page(struct buffer_page *page)
 {
 	struct list_head *list = page->list.prev;
 
-- 
2.6.1


--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

[toc] | [standalone]


Back to top | Article view | linux.kernel


csiph-web