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 <sashiko-bot@kernel.org>
Closes: https://netdev-ai.bots.linux.dev/sashiko/#/patchset/20260831135117.574836-1-sw%40simonwunderlich.de?part=8
Signed-off-by: Sven Eckelmann <sven@narfation.org>
This commit is contained in:
Sven Eckelmann 2026-09-01 19:33:18 +02:00
parent 271f3730fc
commit 6d7f71ae4c
No known key found for this signature in database
GPG Key ID: 4D0F772BD314F5CB

View File

@ -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,