summaryrefslogtreecommitdiffstats
path: root/src/netlink.c
diff options
context:
space:
mode:
authorFlorian Westphal <fw@strlen.de>2022-04-17 22:58:19 +0200
committerFlorian Westphal <fw@strlen.de>2022-04-18 00:45:17 +0200
commitea31855d73b75445ab4df51eaf75ad0b21f5c506 (patch)
treeec5196f668a5ba38724b0a27d5bb8d6ec438976d /src/netlink.c
parent48204bd70d0897c1a1fb2a0dfc8c0afd0275d8bb (diff)
netlink: remove unused argument from helper function
Signed-off-by: Florian Westphal <fw@strlen.de>
Diffstat (limited to 'src/netlink.c')
-rw-r--r--src/netlink.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/netlink.c b/src/netlink.c
index 24a9ad98..240c937e 100644
--- a/src/netlink.c
+++ b/src/netlink.c
@@ -805,7 +805,7 @@ static struct expr *set_make_key(const struct nftnl_udata *attr)
return expr;
}
-static bool set_udata_key_valid(const struct expr *e, const struct datatype *d, uint32_t len)
+static bool set_udata_key_valid(const struct expr *e, uint32_t len)
{
if (!e)
return false;
@@ -935,7 +935,7 @@ struct set *netlink_delinearize_set(struct netlink_ctx *ctx,
dtype = set_datatype_alloc(datatype, databyteorder);
klen = nftnl_set_get_u32(nls, NFTNL_SET_DATA_LEN) * BITS_PER_BYTE;
- if (set_udata_key_valid(typeof_expr_data, dtype, klen)) {
+ if (set_udata_key_valid(typeof_expr_data, klen)) {
datatype_free(datatype_get(dtype));
set->data = typeof_expr_data;
} else {
@@ -960,7 +960,7 @@ struct set *netlink_delinearize_set(struct netlink_ctx *ctx,
dtype = set_datatype_alloc(keytype, keybyteorder);
klen = nftnl_set_get_u32(nls, NFTNL_SET_KEY_LEN) * BITS_PER_BYTE;
- if (set_udata_key_valid(typeof_expr_key, dtype, klen)) {
+ if (set_udata_key_valid(typeof_expr_key, klen)) {
datatype_free(datatype_get(dtype));
set->key = typeof_expr_key;
set->key_typeof_valid = true;