Skip to content

Commit f7e840e

Browse files
Colin Ian Kingummakynes
authored andcommitted
netfilter: nf_tables: remove unused parameter ctx
Function nf_tables_set_desc_parse parameter ctx is not being used so remove it as it is redundant. Signed-off-by: Colin Ian King <[email protected]> Signed-off-by: Pablo Neira Ayuso <[email protected]>
1 parent 3b15d09 commit f7e840e

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

net/netfilter/nf_tables_api.c

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3436,8 +3436,7 @@ static int nf_tables_getset(struct net *net, struct sock *nlsk,
34363436
return err;
34373437
}
34383438

3439-
static int nf_tables_set_desc_parse(const struct nft_ctx *ctx,
3440-
struct nft_set_desc *desc,
3439+
static int nf_tables_set_desc_parse(struct nft_set_desc *desc,
34413440
const struct nlattr *nla)
34423441
{
34433442
struct nlattr *da[NFTA_SET_DESC_MAX + 1];
@@ -3563,7 +3562,7 @@ static int nf_tables_newset(struct net *net, struct sock *nlsk,
35633562
policy = ntohl(nla_get_be32(nla[NFTA_SET_POLICY]));
35643563

35653564
if (nla[NFTA_SET_DESC] != NULL) {
3566-
err = nf_tables_set_desc_parse(&ctx, &desc, nla[NFTA_SET_DESC]);
3565+
err = nf_tables_set_desc_parse(&desc, nla[NFTA_SET_DESC]);
35673566
if (err < 0)
35683567
return err;
35693568
}

0 commit comments

Comments
 (0)