Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 349984
b: refs/heads/master
c: 5a3d04d
h: refs/heads/master
v: v3
  • Loading branch information
Arnaldo Carvalho de Melo committed Jan 24, 2013
1 parent d027d1e commit 65da552
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 3 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 1de7b7e89d16e3daf32fb3b6f214d038ab2ed879
refs/heads/master: 5a3d04d6dc9050b4b4562f5c66aea23f0aa1c003
9 changes: 7 additions & 2 deletions trunk/tools/perf/util/intlist.c
Original file line number Diff line number Diff line change
Expand Up @@ -59,9 +59,14 @@ void intlist__remove(struct intlist *ilist, struct int_node *node)

struct int_node *intlist__find(struct intlist *ilist, int i)
{
struct int_node *node = NULL;
struct rb_node *rb_node = rblist__find(&ilist->rblist, (void *)((long)i));
struct int_node *node;
struct rb_node *rb_node;

if (ilist == NULL)
return NULL;

node = NULL;
rb_node = rblist__find(&ilist->rblist, (void *)((long)i));
if (rb_node)
node = container_of(rb_node, struct int_node, rb_node);

Expand Down

0 comments on commit 65da552

Please sign in to comment.