perf tools: Fix intlist node removal
authorSuzuki K. Poulose <suzuki@in.ibm.com>
Fri, 31 Aug 2012 06:58:47 +0000 (12:28 +0530)
committerArnaldo Carvalho de Melo <acme@redhat.com>
Wed, 5 Sep 2012 20:35:24 +0000 (17:35 -0300)
commit60ebf328762914b80d3e4e5f07bda599043c8eda
tree1ea52103b55a48d5779af0ed081d21a544e4a01f
parent09a2f16a916178489fc4bf439de668d81fda7616
perf tools: Fix intlist node removal

Similar to the one in :
https://lkml.org/lkml/2012/8/29/27

Make sure we remove the node from the rblist before we delete the node.
The rblist__remove_node() will invoke rblist->node_delete, which  will
take care of deleting the node with the suitable function provided by
the user.

Signed-off-by: Suzuki K Poulose <suzuki@in.ibm.com>
Acked-by: David Ahern <dsahern@gmail.com>
Cc: David Ahern <dsahern@gmail.com>
Cc: Suzuki K Poulose <suzuki@in.ibm.com>
Link: http://lkml.kernel.org/r/20120831065840.5167.90318.stgit@suzukikp.in.ibm.com
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
tools/perf/util/intlist.c