]> git.ipfire.org Git - thirdparty/kernel/linux.git/commitdiff
netlink: update outdated comment
authorKexin Sun <kexinsun@smail.nju.edu.cn>
Wed, 11 Mar 2026 13:35:19 +0000 (21:35 +0800)
committerJakub Kicinski <kuba@kernel.org>
Fri, 13 Mar 2026 02:29:01 +0000 (19:29 -0700)
The function netlink_clear_multicast_users() was removed as unused
in commit 2173f8d953e7 ("netlink: cleanup tap related functions").
Update the comment in netlink_change_ngroups() to remove the stale
reference, replacing it with a general description of the behavior
while preserving the warning.

Assisted-by: unnamed:deepseek-v3.2 coccinelle
Signed-off-by: Kexin Sun <kexinsun@smail.nju.edu.cn>
Link: https://patch.msgid.link/20260311133519.688-1-kexinsun@smail.nju.edu.cn
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
net/netlink/af_netlink.c

index 4d609d5cf40653e04de60f2d28ee26b8bdcdc2ed..018d33af25ad9b76eb27bac83522a49b7c08ab4f 100644 (file)
@@ -2108,8 +2108,8 @@ int __netlink_change_ngroups(struct sock *sk, unsigned int groups)
  * This changes the number of multicast groups that are available
  * on a certain netlink family. Note that it is not possible to
  * change the number of groups to below 32. Also note that it does
- * not implicitly call netlink_clear_multicast_users() when the
- * number of groups is reduced.
+ * not implicitly clear listeners from groups that are removed when
+ * the number of groups is reduced.
  *
  * @sk: The kernel netlink socket, as returned by netlink_kernel_create().
  * @groups: The new number of groups.