netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] selftests: netfilter: remove unused parameter
@ 2024-10-21  8:04 Liu Jing
  2024-10-30 12:18 ` Pablo Neira Ayuso
  0 siblings, 1 reply; 2+ messages in thread
From: Liu Jing @ 2024-10-21  8:04 UTC (permalink / raw)
  To: pablo
  Cc: kadlec, davem, edumazet, kuba, pabeni, shuah, netfilter-devel,
	coreteam, netdev, linux-kselftest, linux-kernel, Liu Jing

Signed-off-by: Liu Jing <liujing@cmss.chinamobile.com>

---
V1 -> V2:  Delete more unused parameters, such as err, v1 only deleted rplnlh parameter

Signed-off-by: Liu Jing <liujing@cmss.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




^ permalink raw reply related	[flat|nested] 2+ messages in thread

* Re: [PATCH] selftests: netfilter: remove unused parameter
  2024-10-21  8:04 [PATCH] selftests: netfilter: remove unused parameter Liu Jing
@ 2024-10-30 12:18 ` Pablo Neira Ayuso
  0 siblings, 0 replies; 2+ messages in thread
From: Pablo Neira Ayuso @ 2024-10-30 12:18 UTC (permalink / raw)
  To: Liu Jing
  Cc: kadlec, davem, edumazet, kuba, pabeni, shuah, netfilter-devel,
	coreteam, netdev, linux-kselftest, linux-kernel

Applied to nf.git, thanks

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2024-10-30 12:18 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-10-21  8:04 [PATCH] selftests: netfilter: remove unused parameter Liu Jing
2024-10-30 12:18 ` Pablo Neira Ayuso

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).