summaryrefslogtreecommitdiffstats
path: root/include/net/netfilter/nf_tables.h
diff options
context:
space:
mode:
authorPatrick McHardy2015-04-11 03:27:34 +0200
committerPablo Neira Ayuso2015-04-13 17:17:26 +0200
commite562d860d7c8ad28f83dc4c9094fd3ae648ea0d6 (patch)
tree6253129e0b9771c979b08535e7533c6ef08eb0eb /include/net/netfilter/nf_tables.h
parentnetfilter: nf_tables: convert expressions to u32 register pointers (diff)
downloadkernel-qcow2-linux-e562d860d7c8ad28f83dc4c9094fd3ae648ea0d6.tar.gz
kernel-qcow2-linux-e562d860d7c8ad28f83dc4c9094fd3ae648ea0d6.tar.xz
kernel-qcow2-linux-e562d860d7c8ad28f83dc4c9094fd3ae648ea0d6.zip
netfilter: nf_tables: kill nft_data_cmp()
Only needlessly complicates things due to requiring specific argument types. Use memcmp directly. Signed-off-by: Patrick McHardy <kaber@trash.net> Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
Diffstat (limited to 'include/net/netfilter/nf_tables.h')
-rw-r--r--include/net/netfilter/nf_tables.h7
1 files changed, 0 insertions, 7 deletions
diff --git a/include/net/netfilter/nf_tables.h b/include/net/netfilter/nf_tables.h
index 81cd816554b9..fca0b5def629 100644
--- a/include/net/netfilter/nf_tables.h
+++ b/include/net/netfilter/nf_tables.h
@@ -69,13 +69,6 @@ struct nft_regs {
};
};
-static inline int nft_data_cmp(const struct nft_data *d1,
- const struct nft_data *d2,
- unsigned int len)
-{
- return memcmp(d1->data, d2->data, len);
-}
-
static inline void nft_data_copy(struct nft_data *dst,
const struct nft_data *src)
{