提交 e121e9ec 编写于 作者: P Patrick McHardy 提交者: David S. Miller

[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: NPatrick McHardy <kaber@trash.net>
Signed-off-by: NDavid S. Miller <davem@davemloft.net>
上级 7a11b984
...@@ -120,7 +120,7 @@ int nf_queue(struct sk_buff **skb, ...@@ -120,7 +120,7 @@ int nf_queue(struct sk_buff **skb,
/* QUEUE == DROP if noone is waiting, to be safe. */ /* QUEUE == DROP if noone is waiting, to be safe. */
read_lock(&queue_handler_lock); read_lock(&queue_handler_lock);
if (!queue_handler[pf] || !queue_handler[pf]->outfn) { if (!queue_handler[pf]) {
read_unlock(&queue_handler_lock); read_unlock(&queue_handler_lock);
kfree_skb(*skb); kfree_skb(*skb);
return 1; return 1;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册