diff options
author | Patrick McHardy <kaber@trash.net> | 2006-08-22 03:36:37 -0400 |
---|---|---|
committer | David S. Miller <davem@sunset.davemloft.net> | 2006-09-22 17:55:34 -0400 |
commit | efa741656e9ebf5fd6e0432b0d1b3c7f156392d3 (patch) | |
tree | 18ad158b5972904bd9ba930e5c6ec49181f3b400 /net/sched/act_ipt.c | |
parent | fe1cb10873b44cf89082465823ee6d4d4ac63ad7 (diff) |
[NETFILTER]: x_tables: remove unused size argument to check/destroy functions
The size is verified by x_tables and isn't needed by the modules anymore.
Signed-off-by: Patrick McHardy <kaber@trash.net>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/sched/act_ipt.c')
-rw-r--r-- | net/sched/act_ipt.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/net/sched/act_ipt.c b/net/sched/act_ipt.c index 45a3143b8629..d8c9310da6e5 100644 --- a/net/sched/act_ipt.c +++ b/net/sched/act_ipt.c | |||
@@ -69,7 +69,6 @@ static int ipt_init_target(struct ipt_entry_target *t, char *table, unsigned int | |||
69 | if (t->u.kernel.target->checkentry | 69 | if (t->u.kernel.target->checkentry |
70 | && !t->u.kernel.target->checkentry(table, NULL, | 70 | && !t->u.kernel.target->checkentry(table, NULL, |
71 | t->u.kernel.target, t->data, | 71 | t->u.kernel.target, t->data, |
72 | t->u.target_size - sizeof(*t), | ||
73 | hook)) { | 72 | hook)) { |
74 | module_put(t->u.kernel.target->me); | 73 | module_put(t->u.kernel.target->me); |
75 | ret = -EINVAL; | 74 | ret = -EINVAL; |
@@ -81,8 +80,7 @@ static int ipt_init_target(struct ipt_entry_target *t, char *table, unsigned int | |||
81 | static void ipt_destroy_target(struct ipt_entry_target *t) | 80 | static void ipt_destroy_target(struct ipt_entry_target *t) |
82 | { | 81 | { |
83 | if (t->u.kernel.target->destroy) | 82 | if (t->u.kernel.target->destroy) |
84 | t->u.kernel.target->destroy(t->u.kernel.target, t->data, | 83 | t->u.kernel.target->destroy(t->u.kernel.target, t->data); |
85 | t->u.target_size - sizeof(*t)); | ||
86 | module_put(t->u.kernel.target->me); | 84 | module_put(t->u.kernel.target->me); |
87 | } | 85 | } |
88 | 86 | ||