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>
This commit is contained in:
committed by
Pablo Neira Ayuso
parent
fad136ea0d
commit
e562d860d7
@@ -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)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user