From 6d7f71ae4cdcbb22f541638057299fe26c451e65 Mon Sep 17 00:00:00 2001 From: Sven Eckelmann Date: Tue, 1 Sep 2026 19:33:18 +0200 Subject: [PATCH] batman-adv: correct batadv_hash_remove kdoc return type Not the data is returned after a batadv_hash_remove() but the pointer to the hlist_node which was used to look up the entry in the hash. Reported-by: Sashiko Closes: https://netdev-ai.bots.linux.dev/sashiko/#/patchset/20260831135117.574836-1-sw%40simonwunderlich.de?part=8 Signed-off-by: Sven Eckelmann --- net/batman-adv/hash.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/net/batman-adv/hash.h b/net/batman-adv/hash.h index e67afe01304c..45a432cc1578 100644 --- a/net/batman-adv/hash.h +++ b/net/batman-adv/hash.h @@ -137,7 +137,7 @@ static inline int batadv_hash_add(struct batadv_hashtable *hash, * data could be the structure you use with just the key filled, we just need * the key for comparing. * - * Return: returns pointer to data on success, so you can remove the used + * Return: returns pointer to hlist_node on success, so you can remove the used * structure yourself, or NULL on error */ static inline void *batadv_hash_remove(struct batadv_hashtable *hash,