diff options
author | Patrick McHardy <kaber@trash.net> | 2015-04-11 02:27:34 +0100 |
---|---|---|
committer | Pablo Neira Ayuso <pablo@netfilter.org> | 2015-04-13 17:17:26 +0200 |
commit | e562d860d7c8ad28f83dc4c9094fd3ae648ea0d6 (patch) | |
tree | 6253129e0b9771c979b08535e7533c6ef08eb0eb /include/net | |
parent | fad136ea0d32ead1f62e3e2a3d436c26d74e5289 (diff) | |
download | linux-stable-e562d860d7c8ad28f83dc4c9094fd3ae648ea0d6.tar.gz linux-stable-e562d860d7c8ad28f83dc4c9094fd3ae648ea0d6.tar.bz2 linux-stable-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')
-rw-r--r-- | include/net/netfilter/nf_tables.h | 7 |
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) { |