]> git.ipfire.org Git - thirdparty/kernel/stable.git/commitdiff
batman-adv: fix batadv_skb_is_frag() kernel-doc
authorSven Eckelmann <sven@narfation.org>
Sat, 16 May 2026 20:10:08 +0000 (22:10 +0200)
committerSven Eckelmann <sven@narfation.org>
Sat, 16 May 2026 20:15:19 +0000 (22:15 +0200)
The kernel-doc comment for batadv_skb_is_frag() contained two errors:

* the function description referred to "gain a unicast packet" instead
  of "contains unicast fragment".
* the Return section omitted "merged" from "newly skb", leaving the
  description grammatically incorrect and inconsistent with the
  function description.

Fixes: bc62216dc8e2 ("batman-adv: frag: disallow unicast fragment in fragment")
Signed-off-by: Sven Eckelmann <sven@narfation.org>
net/batman-adv/fragmentation.c

index 4a594aa2ebf6652fd7db76b13d1d5a9d788bdaad..e9553db423491a178368f65ace5dcd790a328442 100644 (file)
@@ -305,10 +305,10 @@ free:
 }
 
 /**
- * batadv_skb_is_frag() - check if newly merged skb is gain a unicast packet
+ * batadv_skb_is_frag() - check if newly merged skb contains unicast fragment
  * @skb: newly merged skb
  *
- * Return: if newly skb is of type BATADV_UNICAST_FRAG
+ * Return: if newly merged skb is of type BATADV_UNICAST_FRAG
  */
 static bool batadv_skb_is_frag(struct sk_buff *skb)
 {