projects
/
GitHub
/
LineageOS
/
android_kernel_samsung_universal7580.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
7a11b98
)
[NETFILTER]: nf_queue: remove unnecessary check for outfn
author
Patrick McHardy
<kaber@trash.net>
Mon, 27 Feb 2006 21:03:39 +0000
(13:03 -0800)
committer
David S. Miller
<davem@davemloft.net>
Mon, 27 Feb 2006 21:03:39 +0000
(13:03 -0800)
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>
net/netfilter/nf_queue.c
patch
|
blob
|
blame
|
history
diff --git
a/net/netfilter/nf_queue.c
b/net/netfilter/nf_queue.c
index c61f7237237f98cae58e66101aca9fedad61acbc..913df7dcbada908f8a69b56c1a1c61b85f3f42d7 100644
(file)
--- 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;