diff options
author | Antonio Quartulli <ordex@autistici.org> | 2011-07-10 00:36:36 +0200 |
---|---|---|
committer | Marek Lindner <lindner_marek@yahoo.de> | 2011-08-22 15:16:19 +0200 |
commit | 1a1f37d9257a4792ca17b28b1c2e4ad15fe95b28 (patch) | |
tree | 5bc0aa0d34b87d1f9b70682f1c54298860ce7d13 /net/ipv6/mip6.c | |
parent | 322a8b034003c0d46d39af85bf24fee27b902f48 (diff) | |
download | blackbird-op-linux-1a1f37d9257a4792ca17b28b1c2e4ad15fe95b28.tar.gz blackbird-op-linux-1a1f37d9257a4792ca17b28b1c2e4ad15fe95b28.zip |
batman-adv: hash_add() has to discriminate on the return value
hash_add() returns 0 on success while returns -1 either on error and on
entry already present. The caller could use such information to select
its behaviour. For this reason it is useful that hash_add() returns -1
in case on error and returns 1 in case of entry already present.
Signed-off-by: Antonio Quartulli <ordex@autistici.org>
Signed-off-by: Marek Lindner <lindner_marek@yahoo.de>
Diffstat (limited to 'net/ipv6/mip6.c')
0 files changed, 0 insertions, 0 deletions