]> git.proxmox.com Git - mirror_ubuntu-bionic-kernel.git/blobdiff - kernel/pid.c
hlist: drop the node parameter from iterators
[mirror_ubuntu-bionic-kernel.git] / kernel / pid.c
index f2c6a68250989d4223b788bd368b6dd7a80e4e7d..047dc62646389fd5abdf5fc63cb8db963a1a5b60 100644 (file)
@@ -350,10 +350,9 @@ void disable_pid_allocation(struct pid_namespace *ns)
 
 struct pid *find_pid_ns(int nr, struct pid_namespace *ns)
 {
-       struct hlist_node *elem;
        struct upid *pnr;
 
-       hlist_for_each_entry_rcu(pnr, elem,
+       hlist_for_each_entry_rcu(pnr,
                        &pid_hash[pid_hashfn(nr, ns)], pid_chain)
                if (pnr->nr == nr && pnr->ns == ns)
                        return container_of(pnr, struct pid,