[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-Id: <20241021080447.2918-1-liujing@cmss.chinamobile.com>
Date: Mon, 21 Oct 2024 16:04:47 +0800
From: Liu Jing <liujing@...s.chinamobile.com>
To: pablo@...filter.org
Cc: kadlec@...filter.org,
davem@...emloft.net,
edumazet@...gle.com,
kuba@...nel.org,
pabeni@...hat.com,
shuah@...nel.org,
netfilter-devel@...r.kernel.org,
coreteam@...filter.org,
netdev@...r.kernel.org,
linux-kselftest@...r.kernel.org,
linux-kernel@...r.kernel.org,
Liu Jing <liujing@...s.chinamobile.com>
Subject: [PATCH] selftests: netfilter: remove unused parameter
Signed-off-by: Liu Jing <liujing@...s.chinamobile.com>
---
V1 -> V2: Delete more unused parameters, such as err, v1 only deleted rplnlh parameter
Signed-off-by: Liu Jing <liujing@...s.chinamobile.com>
---
.../testing/selftests/net/netfilter/conntrack_dump_flush.c | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/tools/testing/selftests/net/netfilter/conntrack_dump_flush.c b/tools/testing/selftests/net/netfilter/conntrack_dump_flush.c
index e03ddc60b5d4..63ae49f166a1 100644
--- a/tools/testing/selftests/net/netfilter/conntrack_dump_flush.c
+++ b/tools/testing/selftests/net/netfilter/conntrack_dump_flush.c
@@ -97,7 +97,7 @@ static int conntrack_data_insert(struct mnl_socket *sock, struct nlmsghdr *nlh,
{
char buf[MNL_SOCKET_BUFFER_SIZE];
unsigned int portid;
- int err, ret;
+ int ret;
portid = mnl_socket_get_portid(sock);
@@ -215,7 +215,7 @@ static int conntracK_count_zone(struct mnl_socket *sock, uint16_t zone)
struct nfgenmsg *nfh;
struct nlattr *nest;
unsigned int portid;
- int err, ret;
+ int ret;
portid = mnl_socket_get_portid(sock);
@@ -262,7 +262,7 @@ static int conntrack_flush_zone(struct mnl_socket *sock, uint16_t zone)
struct nfgenmsg *nfh;
struct nlattr *nest;
unsigned int portid;
- int err, ret;
+ int ret;
portid = mnl_socket_get_portid(sock);
--
2.27.0
Powered by blists - more mailing lists