aboutsummaryrefslogtreecommitdiffstats
path: root/net
diff options
context:
space:
mode:
authorPatrick McHardy <kaber@trash.net>2006-02-27 13:03:39 -0800
committerDavid S. Miller <davem@davemloft.net>2006-02-27 13:03:39 -0800
commite121e9ecb08c3a9843243f461290869ff08be900 (patch)
tree9574002aa4dfffafe16512460f12ef5c79486537 /net
parent7a11b9848ae27e571f219fab5541bd84700f0d68 (diff)
downloadkernel_samsung_aries-e121e9ecb08c3a9843243f461290869ff08be900.zip
kernel_samsung_aries-e121e9ecb08c3a9843243f461290869ff08be900.tar.gz
kernel_samsung_aries-e121e9ecb08c3a9843243f461290869ff08be900.tar.bz2
[NETFILTER]: nf_queue: remove unnecessary check for outfn
The only point of registering a queue handler is to provide an outfn, so there is no need to check for it. 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/netfilter/nf_queue.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/net/netfilter/nf_queue.c b/net/netfilter/nf_queue.c
index c61f723..913df7d 100644
--- a/net/netfilter/nf_queue.c
+++ b/net/netfilter/nf_queue.c
@@ -120,7 +120,7 @@ int nf_queue(struct sk_buff **skb,
/* QUEUE == DROP if noone is waiting, to be safe. */
read_lock(&queue_handler_lock);
- if (!queue_handler[pf] || !queue_handler[pf]->outfn) {
+ if (!queue_handler[pf]) {
read_unlock(&queue_handler_lock);
kfree_skb(*skb);
return 1;