From: Antonio Quartulli Date: Sat, 9 Jul 2011 22:36:36 +0000 (+0200) Subject: batman-adv: hash_add() has to discriminate on the return value X-Git-Tag: v3.2-rc1~129^2~420^2~7 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=1a1f37d9257a4792ca17b28b1c2e4ad15fe95b28;p=pandora-kernel.git 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 Signed-off-by: Marek Lindner --- Reading git-diff-tree failed