aboutsummaryrefslogtreecommitdiffstats
path: root/net
diff options
context:
space:
mode:
authorPablo Neira Ayuso <pablo@netfilter.org>2018-10-11 10:58:26 +0200
committerPablo Neira Ayuso <pablo@netfilter.org>2018-10-16 10:01:50 +0200
commite891e50a8ad9cbed68c9a90d8879faf7c1d8318a (patch)
tree5c8c286c271489aaee52260d78b5a32e63871c0e /net
parentnetfilter: nft_xfrm: use state family, not hook one (diff)
downloadlinux-dev-e891e50a8ad9cbed68c9a90d8879faf7c1d8318a.tar.xz
linux-dev-e891e50a8ad9cbed68c9a90d8879faf7c1d8318a.zip
netfilter: xt_osf: simplify xt_osf_match_packet()
info area in match is always available, and remove unneeded variables. Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
Diffstat (limited to 'net')
-rw-r--r--net/netfilter/xt_osf.c8
1 files changed, 1 insertions, 7 deletions
diff --git a/net/netfilter/xt_osf.c b/net/netfilter/xt_osf.c
index bf7bba80e24c..7a103553d10d 100644
--- a/net/netfilter/xt_osf.c
+++ b/net/netfilter/xt_osf.c
@@ -40,14 +40,8 @@
static bool
xt_osf_match_packet(const struct sk_buff *skb, struct xt_action_param *p)
{
- const struct xt_osf_info *info = p->matchinfo;
- struct net *net = xt_net(p);
-
- if (!info)
- return false;
-
return nf_osf_match(skb, xt_family(p), xt_hooknum(p), xt_in(p),
- xt_out(p), info, net, nf_osf_fingers);
+ xt_out(p), p->matchinfo, xt_net(p), nf_osf_fingers);
}
static struct xt_match xt_osf_match = {