mirror of
https://github.com/torvalds/linux.git
synced 2026-11-07 06:17:02 +01:00
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:
parent
271f3730fc
commit
6d7f71ae4c
|
|
@ -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,
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user