Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit cdb2a0a9 authored by Yaowei Bai's avatar Yaowei Bai Committed by Steven Rostedt
Browse files

ring-buffer: rb_event_is_commit() can return boolean

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: default avatarYaowei Bai <bywxiaobai@163.com>
Signed-off-by: default avatarSteven Rostedt <rostedt@goodmis.org>
parent da58834c
Loading
Loading
Loading
Loading
+2 −2
Original line number Original line Diff line number Diff line
@@ -2270,7 +2270,7 @@ rb_add_time_stamp(struct ring_buffer_event *event, u64 delta)
	return skip_time_extend(event);
	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);
				     struct ring_buffer_event *event);


/**
/**
@@ -2498,7 +2498,7 @@ static inline void rb_event_discard(struct ring_buffer_event *event)
		event->time_delta = 1;
		event->time_delta = 1;
}
}


static inline int
static inline bool
rb_event_is_commit(struct ring_buffer_per_cpu *cpu_buffer,
rb_event_is_commit(struct ring_buffer_per_cpu *cpu_buffer,
		   struct ring_buffer_event *event)
		   struct ring_buffer_event *event)
{
{