]> bbs.cooldavid.org Git - net-next-2.6.git/commitdiff
net: Remove unused parameter from fill method in fib_rules_ops.
authorRami Rosen <ramirose@gmail.com>
Thu, 21 May 2009 00:26:23 +0000 (17:26 -0700)
committerDavid S. Miller <davem@davemloft.net>
Thu, 21 May 2009 00:26:23 +0000 (17:26 -0700)
The netlink message header (struct nlmsghdr) is an unused parameter in
fill method of fib_rules_ops struct.  This patch removes this
parameter from this method and fixes the places where this method is
called.

(include/net/fib_rules.h)

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 b9b63395d002ef735cc56f6a48708bfc4be25353..ca4b2e840078627befec9069f7bdc972778fe7b5 100644 (file)
@@ -54,7 +54,6 @@ struct fib_rules_ops
                                           struct fib_rule_hdr *,
                                           struct nlattr **);
        int                     (*fill)(struct fib_rule *, struct sk_buff *,
-                                       struct nlmsghdr *,
                                        struct fib_rule_hdr *);
        u32                     (*default_pref)(struct fib_rules_ops *ops);
        size_t                  (*nlmsg_payload)(struct fib_rule *);
index 17d9f497b79742dbcccab038cf861785a73b09b1..bd309384f8b82dcb928c8236cc2901d39f9cee9f 100644 (file)
@@ -500,7 +500,7 @@ static int fib_nl_fill_rule(struct sk_buff *skb, struct fib_rule *rule,
        if (rule->target)
                NLA_PUT_U32(skb, FRA_GOTO, rule->target);
 
-       if (ops->fill(rule, skb, nlh, frh) < 0)
+       if (ops->fill(rule, skb, frh) < 0)
                goto nla_put_failure;
 
        return nlmsg_end(skb, nlh);
index a2690b12e03c754e1a129439f0b063e414a874dd..72495f25269fa5435cd5b17f3e403ba0e74ee4ba 100644 (file)
@@ -192,7 +192,7 @@ unsigned dnet_addr_type(__le16 addr)
 }
 
 static int dn_fib_rule_fill(struct fib_rule *rule, struct sk_buff *skb,
-                           struct nlmsghdr *nlh, struct fib_rule_hdr *frh)
+                           struct fib_rule_hdr *frh)
 {
        struct dn_fib_rule *r = (struct dn_fib_rule *)rule;
 
index 38904be4102e7fe495b8597dff2515fca1351e79..92d9d97ec5e388572c0273b3a9754ac0857b97ab 100644 (file)
@@ -209,7 +209,7 @@ static int fib4_rule_compare(struct fib_rule *rule, struct fib_rule_hdr *frh,
 }
 
 static int fib4_rule_fill(struct fib_rule *rule, struct sk_buff *skb,
-                         struct nlmsghdr *nlh, struct fib_rule_hdr *frh)
+                         struct fib_rule_hdr *frh)
 {
        struct fib4_rule *rule4 = (struct fib4_rule *) rule;
 
index e1a36dbb5a2743a3a99793ed3c7d46e3a5020d17..00a7a5e4ac975a7176d9d3100ea938744865af6b 100644 (file)
@@ -211,7 +211,7 @@ static int fib6_rule_compare(struct fib_rule *rule, struct fib_rule_hdr *frh,
 }
 
 static int fib6_rule_fill(struct fib_rule *rule, struct sk_buff *skb,
-                         struct nlmsghdr *nlh, struct fib_rule_hdr *frh)
+                         struct fib_rule_hdr *frh)
 {
        struct fib6_rule *rule6 = (struct fib6_rule *) rule;