Skip to content

Commit

Permalink
[NETFILTER]: nf_queue: remove unnecessary check for outfn
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Patrick McHardy authored and David S. Miller committed Feb 27, 2006
1 parent 7a11b98 commit e121e9e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion net/netfilter/nf_queue.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit e121e9e

Please sign in to comment.