diff options
| author | Patrick McHardy <kaber@trash.net> | 2015-04-10 21:27:34 -0400 |
|---|---|---|
| committer | Pablo Neira Ayuso <pablo@netfilter.org> | 2015-04-13 11:17:26 -0400 |
| commit | e562d860d7c8ad28f83dc4c9094fd3ae648ea0d6 (patch) | |
| tree | 6253129e0b9771c979b08535e7533c6ef08eb0eb /include/net | |
| parent | fad136ea0d32ead1f62e3e2a3d436c26d74e5289 (diff) | |
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 { | |||
| 69 | }; | 69 | }; |
| 70 | }; | 70 | }; |
| 71 | 71 | ||
| 72 | static inline int nft_data_cmp(const struct nft_data *d1, | ||
| 73 | const struct nft_data *d2, | ||
| 74 | unsigned int len) | ||
| 75 | { | ||
| 76 | return memcmp(d1->data, d2->data, len); | ||
| 77 | } | ||
| 78 | |||
| 79 | static inline void nft_data_copy(struct nft_data *dst, | 72 | static inline void nft_data_copy(struct nft_data *dst, |
| 80 | const struct nft_data *src) | 73 | const struct nft_data *src) |
| 81 | { | 74 | { |
