Skip to content

Commit

Permalink
selftests: netfilter: remove unused parameter
Browse files Browse the repository at this point in the history
err is never used, remove it.

Signed-off-by: Liu Jing <liujing@cmss.chinamobile.com>
Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
  • Loading branch information
Liu Jing authored and ummakynes committed Oct 30, 2024
1 parent c05c628 commit 76342e8
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions tools/testing/selftests/net/netfilter/conntrack_dump_flush.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);

Expand Down Expand Up @@ -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);

Expand Down Expand Up @@ -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);

Expand Down

0 comments on commit 76342e8

Please sign in to comment.