projects
/
GitHub
/
LineageOS
/
G12
/
android_kernel_amlogic_linux-4.9.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
7985182
)
ring-buffer: rb_is_reader_page() can return boolean
author
Yaowei Bai
<bywxiaobai@163.com>
Tue, 29 Sep 2015 14:43:31 +0000
(22:43 +0800)
committer
Steven Rostedt
<rostedt@goodmis.org>
Mon, 2 Nov 2015 19:23:20 +0000
(14:23 -0500)
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
patch
|
blob
|
blame
|
history
diff --git
a/kernel/trace/ring_buffer.c
b/kernel/trace/ring_buffer.c
index fc347f8b1bca24debb823cdeca09424368c16e2e..26a948f3187f8c2210757473f30c74fa1869724a 100644
(file)
--- 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;