summaryrefslogtreecommitdiffstats
path: root/tools/testing/selftests/net
diff options
context:
space:
mode:
authorLiu Jing <liujing@cmss.chinamobile.com>2024-10-21 10:04:47 +0200
committerPablo Neira Ayuso <pablo@netfilter.org>2024-10-30 13:17:36 +0100
commit76342e84258771e0ef1da7f7de071069f33f9900 (patch)
tree9051b8083415055e89bf17f547a95f6e835fe21b /tools/testing/selftests/net
parentMerge tag 'wireless-2024-10-29' of https://git.kernel.org/pub/scm/linux/kerne... (diff)
downloadlinux-76342e84258771e0ef1da7f7de071069f33f9900.tar.xz
linux-76342e84258771e0ef1da7f7de071069f33f9900.zip
selftests: netfilter: remove unused parameter
err is never used, remove it. Signed-off-by: Liu Jing <liujing@cmss.chinamobile.com> Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
Diffstat (limited to 'tools/testing/selftests/net')
-rw-r--r--tools/testing/selftests/net/netfilter/conntrack_dump_flush.c6
1 files 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 dc056fec993b..254ff03297f0 100644
--- a/tools/testing/selftests/net/netfilter/conntrack_dump_flush.c
+++ b/tools/testing/selftests/net/netfilter/conntrack_dump_flush.c
@@ -98,7 +98,7 @@ static int conntrack_data_insert(struct mnl_socket *sock, struct nlmsghdr *nlh,
char buf[MNL_SOCKET_BUFFER_SIZE];
struct nlmsghdr *rplnlh;
unsigned int portid;
- int err, ret;
+ int ret;
portid = mnl_socket_get_portid(sock);
@@ -217,7 +217,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);
@@ -264,7 +264,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);