aboutsummaryrefslogtreecommitdiff
path: root/net/batman-adv/originator.c
diff options
context:
space:
mode:
authorDavid S. Miller <davem@davemloft.net>2011-08-24 10:33:00 -0700
committerDavid S. Miller <davem@davemloft.net>2011-08-24 10:33:00 -0700
commit0e43182c0c9482a26a4108da9254f3e2869a8e18 (patch)
tree4631b42bebca8dd9bca61e167e543aabd3b981a7 /net/batman-adv/originator.c
parent131ea6675c761f655d43b808dd0fe83d15d5cdd3 (diff)
parenta943cac144e035c21d4f1b31b95f15b33c33a480 (diff)
Merge branch 'batman-adv/next' of git://git.open-mesh.org/linux-merge
Diffstat (limited to 'net/batman-adv/originator.c')
-rw-r--r--net/batman-adv/originator.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/net/batman-adv/originator.c b/net/batman-adv/originator.c
index f3c3f620d19..d448018e514 100644
--- a/net/batman-adv/originator.c
+++ b/net/batman-adv/originator.c
@@ -252,7 +252,7 @@ struct orig_node *get_orig_node(struct bat_priv *bat_priv, const uint8_t *addr)
hash_added = hash_add(bat_priv->orig_hash, compare_orig,
choose_orig, orig_node, &orig_node->hash_entry);
- if (hash_added < 0)
+ if (hash_added != 0)
goto free_bcast_own_sum;
return orig_node;