ring-buffer: fix ret in rb_add_time_stamp
authorSteven Rostedt <srostedt@redhat.com>
Fri, 5 Jun 2009 18:11:30 +0000 (14:11 -0400)
committerSteven Rostedt <rostedt@goodmis.org>
Tue, 9 Jun 2009 16:33:30 +0000 (12:33 -0400)
commitf57a8a1911342265e7acdc190333c4e9235a6632
treedb7aecf9dc26311068a48da77022e0377bf5d3d6
parent1f8a6a10fb9437eac3f516ea4324a19087872f30
ring-buffer: fix ret in rb_add_time_stamp

The update of ret got mistakenly added to the if statement of
rb_try_to_discard. The variable ret should be 1 on commit and zero
otherwise.

[ Impact: fix compiler warning and real bug ]

Signed-off-by: Steven Rostedt <rostedt@goodmis.org>
kernel/trace/ring_buffer.c