diff options
author | Patrick McHardy <kaber@trash.net> | 2007-12-05 04:24:30 -0500 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2008-01-28 17:56:10 -0500 |
commit | f9d8928f8340ab8e76f1da4799cb19a6ff58b83d (patch) | |
tree | e2c763679016394bebee40a56dafe708ffb9d0de /net | |
parent | e3ac5298159c5286cef86f0865d4fa6a606bd391 (diff) |
[NETFILTER]: nf_queue: remove unused data pointer
Remove the data pointer from struct nf_queue_handler. It has never been used
and is useless for the only handler that really matters, nfnetlink_queue,
since the handler is shared between all instances.
Signed-off-by: Patrick McHardy <kaber@trash.net>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net')
-rw-r--r-- | net/ipv4/netfilter/ip_queue.c | 2 | ||||
-rw-r--r-- | net/ipv6/netfilter/ip6_queue.c | 2 | ||||
-rw-r--r-- | net/netfilter/nf_queue.c | 2 | ||||
-rw-r--r-- | net/netfilter/nfnetlink_queue.c | 2 |
4 files changed, 4 insertions, 4 deletions
diff --git a/net/ipv4/netfilter/ip_queue.c b/net/ipv4/netfilter/ip_queue.c index 062ff196f2c5..08e7f8b4e951 100644 --- a/net/ipv4/netfilter/ip_queue.c +++ b/net/ipv4/netfilter/ip_queue.c | |||
@@ -272,7 +272,7 @@ nlmsg_failure: | |||
272 | 272 | ||
273 | static int | 273 | static int |
274 | ipq_enqueue_packet(struct sk_buff *skb, struct nf_info *info, | 274 | ipq_enqueue_packet(struct sk_buff *skb, struct nf_info *info, |
275 | unsigned int queuenum, void *data) | 275 | unsigned int queuenum) |
276 | { | 276 | { |
277 | int status = -EINVAL; | 277 | int status = -EINVAL; |
278 | struct sk_buff *nskb; | 278 | struct sk_buff *nskb; |
diff --git a/net/ipv6/netfilter/ip6_queue.c b/net/ipv6/netfilter/ip6_queue.c index d6e971bd9fe1..5a9ca0d4fb2f 100644 --- a/net/ipv6/netfilter/ip6_queue.c +++ b/net/ipv6/netfilter/ip6_queue.c | |||
@@ -269,7 +269,7 @@ nlmsg_failure: | |||
269 | 269 | ||
270 | static int | 270 | static int |
271 | ipq_enqueue_packet(struct sk_buff *skb, struct nf_info *info, | 271 | ipq_enqueue_packet(struct sk_buff *skb, struct nf_info *info, |
272 | unsigned int queuenum, void *data) | 272 | unsigned int queuenum) |
273 | { | 273 | { |
274 | int status = -EINVAL; | 274 | int status = -EINVAL; |
275 | struct sk_buff *nskb; | 275 | struct sk_buff *nskb; |
diff --git a/net/netfilter/nf_queue.c b/net/netfilter/nf_queue.c index dd18126a1a6d..c098ccbbbcee 100644 --- a/net/netfilter/nf_queue.c +++ b/net/netfilter/nf_queue.c | |||
@@ -153,7 +153,7 @@ static int __nf_queue(struct sk_buff *skb, | |||
153 | } | 153 | } |
154 | #endif | 154 | #endif |
155 | afinfo->saveroute(skb, info); | 155 | afinfo->saveroute(skb, info); |
156 | status = qh->outfn(skb, info, queuenum, qh->data); | 156 | status = qh->outfn(skb, info, queuenum); |
157 | 157 | ||
158 | rcu_read_unlock(); | 158 | rcu_read_unlock(); |
159 | 159 | ||
diff --git a/net/netfilter/nfnetlink_queue.c b/net/netfilter/nfnetlink_queue.c index b75091c8ae5e..94ec1c263d03 100644 --- a/net/netfilter/nfnetlink_queue.c +++ b/net/netfilter/nfnetlink_queue.c | |||
@@ -534,7 +534,7 @@ nla_put_failure: | |||
534 | 534 | ||
535 | static int | 535 | static int |
536 | nfqnl_enqueue_packet(struct sk_buff *skb, struct nf_info *info, | 536 | nfqnl_enqueue_packet(struct sk_buff *skb, struct nf_info *info, |
537 | unsigned int queuenum, void *data) | 537 | unsigned int queuenum) |
538 | { | 538 | { |
539 | int status = -EINVAL; | 539 | int status = -EINVAL; |
540 | struct sk_buff *nskb; | 540 | struct sk_buff *nskb; |