ipv4: remove an unused parameter from configure method of fib_rules_ops.
authorRami Rosen <ramirose@gmail.com>
Mon, 11 May 2009 05:52:49 +0000 (05:52 +0000)
committerDavid S. Miller <davem@davemloft.net>
Sun, 17 May 2009 18:59:45 +0000 (11:59 -0700)
Signed-off-by: Rami Rosen <ramirose@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
include/net/fib_rules.h
net/core/fib_rules.c
net/decnet/dn_rules.c
net/ipv4/fib_rules.c
net/ipv6/fib6_rules.c

index c2bb5cae65156cacfe24d31fa954a7317aa7d188..b9b63395d002ef735cc56f6a48708bfc4be25353 100644 (file)
@@ -48,7 +48,6 @@ struct fib_rules_ops
                                         struct flowi *, int);
        int                     (*configure)(struct fib_rule *,
                                             struct sk_buff *,
-                                            struct nlmsghdr *,
                                             struct fib_rule_hdr *,
                                             struct nlattr **);
        int                     (*compare)(struct fib_rule *,
index 98691e1466b80699b664983e5403b4b1a3a19db2..17d9f497b79742dbcccab038cf861785a73b09b1 100644 (file)
@@ -299,7 +299,7 @@ static int fib_nl_newrule(struct sk_buff *skb, struct nlmsghdr* nlh, void *arg)
        } else if (rule->action == FR_ACT_GOTO)
                goto errout_free;
 
-       err = ops->configure(rule, skb, nlh, frh, tb);
+       err = ops->configure(rule, skb, frh, tb);
        if (err < 0)
                goto errout_free;
 
index 14fbca55e908fba5e067312dc9561e94af2606b0..a2690b12e03c754e1a129439f0b063e414a874dd 100644 (file)
@@ -115,7 +115,7 @@ static int dn_fib_rule_match(struct fib_rule *rule, struct flowi *fl, int flags)
 }
 
 static int dn_fib_rule_configure(struct fib_rule *rule, struct sk_buff *skb,
-                                struct nlmsghdr *nlh, struct fib_rule_hdr *frh,
+                                struct fib_rule_hdr *frh,
                                 struct nlattr **tb)
 {
        int err = -EINVAL;
index 6080d712082160b649cea3675901072be287f705..38904be4102e7fe495b8597dff2515fca1351e79 100644 (file)
@@ -134,7 +134,7 @@ static const struct nla_policy fib4_rule_policy[FRA_MAX+1] = {
 };
 
 static int fib4_rule_configure(struct fib_rule *rule, struct sk_buff *skb,
-                              struct nlmsghdr *nlh, struct fib_rule_hdr *frh,
+                              struct fib_rule_hdr *frh,
                               struct nlattr **tb)
 {
        struct net *net = sock_net(skb->sk);
index f5de3f9dc692164edaf36f7bc0e0dcb0387dbb6f..e1a36dbb5a2743a3a99793ed3c7d46e3a5020d17 100644 (file)
@@ -151,7 +151,7 @@ static const struct nla_policy fib6_rule_policy[FRA_MAX+1] = {
 };
 
 static int fib6_rule_configure(struct fib_rule *rule, struct sk_buff *skb,
-                              struct nlmsghdr *nlh, struct fib_rule_hdr *frh,
+                              struct fib_rule_hdr *frh,
                               struct nlattr **tb)
 {
        int err = -EINVAL;