checkpatch: make --strict the default for drivers/staging files and patches
[firefly-linux-kernel-4.4.55.git] / net / netfilter / nf_queue.c
index 8a8b2abc35ffdeacb5a61e1a801c92f91998bc3d..96777f9a9350b3a684ae56b50c77400fde3ad305 100644 (file)
@@ -105,21 +105,15 @@ bool nf_queue_entry_get_refs(struct nf_queue_entry *entry)
 }
 EXPORT_SYMBOL_GPL(nf_queue_entry_get_refs);
 
-void nf_queue_nf_hook_drop(struct nf_hook_ops *ops)
+void nf_queue_nf_hook_drop(struct net *net, struct nf_hook_ops *ops)
 {
        const struct nf_queue_handler *qh;
-       struct net *net;
 
-       rtnl_lock();
        rcu_read_lock();
        qh = rcu_dereference(queue_handler);
-       if (qh) {
-               for_each_net(net) {
-                       qh->nf_hook_drop(net, ops);
-               }
-       }
+       if (qh)
+               qh->nf_hook_drop(net, ops);
        rcu_read_unlock();
-       rtnl_unlock();
 }
 
 /*