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:
da58834
)
ring-buffer: rb_event_is_commit() can return boolean
author
Yaowei Bai
<bywxiaobai@163.com>
Tue, 29 Sep 2015 14:43:34 +0000
(22:43 +0800)
committer
Steven Rostedt
<rostedt@goodmis.org>
Mon, 2 Nov 2015 19:25:29 +0000
(14:25 -0500)
Make rb_event_is_commit() return bool to improve readability
due to this particular function only using either one or zero as its
return value.
No functional change.
Link:
http://lkml.kernel.org/r/1443537816-5788-7-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 a22878923a303c53bddc63f674afad9ba35c1a3d..75f1d05ea82dcce04e9f6a581f26969e503dc773 100644
(file)
--- a/
kernel/trace/ring_buffer.c
+++ b/
kernel/trace/ring_buffer.c
@@
-2270,7
+2270,7
@@
rb_add_time_stamp(struct ring_buffer_event *event, u64 delta)
return skip_time_extend(event);
}
-static inline
int
rb_event_is_commit(struct ring_buffer_per_cpu *cpu_buffer,
+static inline
bool
rb_event_is_commit(struct ring_buffer_per_cpu *cpu_buffer,
struct ring_buffer_event *event);
/**
@@
-2498,7
+2498,7
@@
static inline void rb_event_discard(struct ring_buffer_event *event)
event->time_delta = 1;
}
-static inline
int
+static inline
bool
rb_event_is_commit(struct ring_buffer_per_cpu *cpu_buffer,
struct ring_buffer_event *event)
{