Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit e121e9ec authored by Patrick McHardy's avatar Patrick McHardy Committed by David S. Miller
Browse files

[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: default avatarPatrick McHardy <kaber@trash.net>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent 7a11b984
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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;