Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

netfilter: nf_tables: Remove unused nft_reduce_is_readonly()

Since commit 9e539c5b6d9c ("netfilter: nf_tables: disable expression
reduction infra") this is unused.

Signed-off-by: Yue Haibing <yuehaibing@huawei.com>
Reviewed-by: Simon Horman <horms@kernel.org>
Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>

authored by

Yue Haibing and committed by
Pablo Neira Ayuso
bf678874 031a7124

-5
-5
include/net/netfilter/nf_tables.h
··· 1939 1939 #define __NFT_REDUCE_READONLY 1UL 1940 1940 #define NFT_REDUCE_READONLY (void *)__NFT_REDUCE_READONLY 1941 1941 1942 - static inline bool nft_reduce_is_readonly(const struct nft_expr *expr) 1943 - { 1944 - return expr->ops->reduce == NFT_REDUCE_READONLY; 1945 - } 1946 - 1947 1942 void nft_reg_track_update(struct nft_regs_track *track, 1948 1943 const struct nft_expr *expr, u8 dreg, u8 len); 1949 1944 void nft_reg_track_cancel(struct nft_regs_track *track, u8 dreg, u8 len);