diff options
author | Yaowei Bai <bywxiaobai@163.com> | 2015-09-29 22:43:31 +0800 |
---|---|---|
committer | Steven Rostedt <rostedt@goodmis.org> | 2015-11-02 14:23:20 -0500 |
commit | 06ca320952dc21c537055d2aa36a2c2e96a1b94d (patch) | |
tree | e18fbd28e34dde7b41bd12ef289d3fa7b28624f0 /kernel | |
parent | 79851821b2c94fc66cddb80b8b12dcfa09f6e7cb (diff) | |
download | blackbird-obmc-linux-06ca320952dc21c537055d2aa36a2c2e96a1b94d.tar.gz blackbird-obmc-linux-06ca320952dc21c537055d2aa36a2c2e96a1b94d.zip |
ring-buffer: rb_is_reader_page() can return boolean
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>
Diffstat (limited to 'kernel')
-rw-r--r-- | kernel/trace/ring_buffer.c | 2 |
1 files changed, 1 insertions, 1 deletions
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; |