Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 300723
b: refs/heads/master
c: 6f66cdc
h: refs/heads/master
i:
  300721: 40f5384
  300719: 97048c3
v: v3
  • Loading branch information
David Ward authored and David S. Miller committed Apr 13, 2012
1 parent b70e3d6 commit 88c8c20
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 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: 9d02daf754238adac48fa075ee79e7edd3d79ed3
refs/heads/master: 6f66cdc3e5d3d5ccbb7ee9265b8211cdc24aa401
8 changes: 4 additions & 4 deletions trunk/net/802/garp.c
Original file line number Diff line number Diff line change
Expand Up @@ -157,9 +157,9 @@ static struct garp_attr *garp_attr_lookup(const struct garp_applicant *app,
while (parent) {
attr = rb_entry(parent, struct garp_attr, node);
d = garp_attr_cmp(attr, data, len, type);
if (d < 0)
if (d > 0)
parent = parent->rb_left;
else if (d > 0)
else if (d < 0)
parent = parent->rb_right;
else
return attr;
Expand All @@ -178,9 +178,9 @@ static struct garp_attr *garp_attr_create(struct garp_applicant *app,
parent = *p;
attr = rb_entry(parent, struct garp_attr, node);
d = garp_attr_cmp(attr, data, len, type);
if (d < 0)
if (d > 0)
p = &parent->rb_left;
else if (d > 0)
else if (d < 0)
p = &parent->rb_right;
else {
/* The attribute already exists; re-use it. */
Expand Down

0 comments on commit 88c8c20

Please sign in to comment.