Skip to content

Commit da0a090

Browse files
tuqiangummakynes
authored andcommitted
netfilter: nf_tables: remove the genmask parameter
The genmask parameter is not used within the nf_tables_addchain function body. It should be removed to simplify the function parameter list. Signed-off-by: tuqiang <[email protected]> Signed-off-by: Jiang Kun <[email protected]> Reviewed-by: Simon Horman <[email protected]> Signed-off-by: Pablo Neira Ayuso <[email protected]>
1 parent 3e59081 commit da0a090

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

net/netfilter/nf_tables_api.c

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2598,9 +2598,8 @@ int nft_chain_add(struct nft_table *table, struct nft_chain *chain)
25982598

25992599
static u64 chain_id;
26002600

2601-
static int nf_tables_addchain(struct nft_ctx *ctx, u8 family, u8 genmask,
2602-
u8 policy, u32 flags,
2603-
struct netlink_ext_ack *extack)
2601+
static int nf_tables_addchain(struct nft_ctx *ctx, u8 family, u8 policy,
2602+
u32 flags, struct netlink_ext_ack *extack)
26042603
{
26052604
const struct nlattr * const *nla = ctx->nla;
26062605
struct nft_table *table = ctx->table;
@@ -3038,7 +3037,7 @@ static int nf_tables_newchain(struct sk_buff *skb, const struct nfnl_info *info,
30383037
extack);
30393038
}
30403039

3041-
return nf_tables_addchain(&ctx, family, genmask, policy, flags, extack);
3040+
return nf_tables_addchain(&ctx, family, policy, flags, extack);
30423041
}
30433042

30443043
static int nft_delchain_hook(struct nft_ctx *ctx,

0 commit comments

Comments
 (0)