]> www.infradead.org Git - linux.git/commitdiff
selftests: netfilter: remove unused parameter
authorLiu Jing <liujing@cmss.chinamobile.com>
Mon, 21 Oct 2024 08:04:47 +0000 (16:04 +0800)
committerPablo Neira Ayuso <pablo@netfilter.org>
Wed, 30 Oct 2024 12:17:36 +0000 (13:17 +0100)
err is never used, remove it.

Signed-off-by: Liu Jing <liujing@cmss.chinamobile.com>
Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
tools/testing/selftests/net/netfilter/conntrack_dump_flush.c

index dc056fec993bd38059227a6050c8f1723cb038f1..254ff03297f06c16296201191cb2815ce47e0907 100644 (file)
@@ -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);