From: Wang Liang <wangliang74@huawei.com>
To: <andrew+netdev@lunn.ch>, <davem@davemloft.net>,
<edumazet@google.com>, <kuba@kernel.org>, <pabeni@redhat.com>,
<jiri@resnulli.us>, <wangliang74@huawei.com>, <idosch@nvidia.com>,
<rrendec@redhat.com>, <menglong8.dong@gmail.com>
Cc: <yuehaibing@huawei.com>, <zhangchangzhong@huawei.com>,
<netdev@vger.kernel.org>, <linux-kernel@vger.kernel.org>
Subject: [PATCH net-next] net: vxlan: remove unused argument of vxlan_mdb_remote_fini()
Date: Wed, 20 Aug 2025 14:56:16 +0800 [thread overview]
Message-ID: <20250820065616.2903359-1-wangliang74@huawei.com> (raw)
The argument 'vxlan' is unused, when commit a3a48de5eade ("vxlan: mdb: Add
MDB control path support") add function vxlan_mdb_remote_fini(). Just
remove it.
Signed-off-by: Wang Liang <wangliang74@huawei.com>
---
drivers/net/vxlan/vxlan_mdb.c | 7 +++----
1 file changed, 3 insertions(+), 4 deletions(-)
diff --git a/drivers/net/vxlan/vxlan_mdb.c b/drivers/net/vxlan/vxlan_mdb.c
index 816ab1aa0526..e8fa9364d661 100644
--- a/drivers/net/vxlan/vxlan_mdb.c
+++ b/drivers/net/vxlan/vxlan_mdb.c
@@ -740,8 +740,7 @@ static int vxlan_mdb_remote_init(const struct vxlan_mdb_config *cfg,
return 0;
}
-static void vxlan_mdb_remote_fini(struct vxlan_dev *vxlan,
- struct vxlan_mdb_remote *remote)
+static void vxlan_mdb_remote_fini(struct vxlan_mdb_remote *remote)
{
WARN_ON_ONCE(!hlist_empty(&remote->src_list));
vxlan_mdb_remote_rdst_fini(rtnl_dereference(remote->rd));
@@ -1159,7 +1158,7 @@ static int vxlan_mdb_remote_add(const struct vxlan_mdb_config *cfg,
return 0;
err_remote_fini:
- vxlan_mdb_remote_fini(cfg->vxlan, remote);
+ vxlan_mdb_remote_fini(remote);
err_free_remote:
kfree(remote);
return err;
@@ -1172,7 +1171,7 @@ static void vxlan_mdb_remote_del(struct vxlan_dev *vxlan,
vxlan_mdb_remote_notify(vxlan, mdb_entry, remote, RTM_DELMDB);
list_del_rcu(&remote->list);
vxlan_mdb_remote_srcs_del(vxlan, &mdb_entry->key, remote);
- vxlan_mdb_remote_fini(vxlan, remote);
+ vxlan_mdb_remote_fini(remote);
kfree_rcu(remote, rcu);
}
--
2.33.0
next reply other threads:[~2025-08-20 6:55 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-08-20 6:56 Wang Liang [this message]
2025-08-20 11:57 ` [PATCH net-next] net: vxlan: remove unused argument of vxlan_mdb_remote_fini() Ido Schimmel
2025-08-21 22:51 ` Jakub Kicinski
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20250820065616.2903359-1-wangliang74@huawei.com \
--to=wangliang74@huawei.com \
--cc=andrew+netdev@lunn.ch \
--cc=davem@davemloft.net \
--cc=edumazet@google.com \
--cc=idosch@nvidia.com \
--cc=jiri@resnulli.us \
--cc=kuba@kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=menglong8.dong@gmail.com \
--cc=netdev@vger.kernel.org \
--cc=pabeni@redhat.com \
--cc=rrendec@redhat.com \
--cc=yuehaibing@huawei.com \
--cc=zhangchangzhong@huawei.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox