perf tools: Use list_move in ordered_events_delete function
tip-bot for Jiri Olsa
merge botCommit-ID: fa4e5c67a2d169b9ef83f51b94e1d4a562ddfc0f Gitweb: http://git.kernel.org/tip/fa4e5c67a2d169b9ef83f51b94e1d4a562ddfc0f Author: Jiri Olsa <[email protected]> AuthorDate: Sun, 15 Jun 2014 19:46:08 +0200 Committer: Arnaldo Carvalho de Melo <[email protected]> CommitDate: Tue, 12 Aug 2014 12:02:59 -0300
perf tools: Use list_move in ordered_events_delete function
As Namhyung pointed out we can use list_move in ordered_events_delete.
Signed-off-by Jiri Olsa <[email protected]>
Suggested-by Namhyung Kim <[email protected]>
Acked-by David Ahern <[email protected]>
Cc Corey Ashford <[email protected]>
Cc David Ahern <[email protected]>
Cc Frederic Weisbecker <[email protected]>
Cc Ingo Molnar <[email protected]>
Cc Jean Pihet <[email protected]>
Cc Namhyung Kim <[email protected]>
Cc Paul Mackerras <[email protected]>
Cc Peter Zijlstra <[email protected]>
Signed-off-by Arnaldo Carvalho de Melo <[email protected]>
--- tools/perf/util/ordered-events.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-)
tools/perf/util/ordered-events.c +1 -2
@@ -96,8 +96,7 @@ ordered_events__new(struct ordered_events *oe, u64 timestamp)void ordered_events__delete (struct ordered_events *oe,struct ordered_event *event) { -list_del (&event->list); -list_add (&event->list, &oe->cache); +list_move (&event->list, &oe->cache); oe->nr_events--; }