Skip to content

Commit

Permalink
ring-buffer: rb_is_reader_page() can return boolean
Browse files Browse the repository at this point in the history
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/[email protected]

Signed-off-by: Yaowei Bai <[email protected]>
Signed-off-by: Steven Rostedt <[email protected]>
  • Loading branch information
baihuahua authored and rostedt committed Nov 2, 2015
1 parent 7985182 commit 06ca320
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion kernel/trace/ring_buffer.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand Down

0 comments on commit 06ca320

Please sign in to comment.