]> git.proxmox.com Git - mirror_ubuntu-focal-kernel.git/blobdiff - include/net/sch_generic.h
hlist: drop the node parameter from iterators
[mirror_ubuntu-focal-kernel.git] / include / net / sch_generic.h
index 2761c905504e076db7de2bea084142bb2f290679..f10818fc8804ba85ca8c2e372b5145b18ae689a9 100644 (file)
@@ -339,11 +339,10 @@ static inline struct Qdisc_class_common *
 qdisc_class_find(const struct Qdisc_class_hash *hash, u32 id)
 {
        struct Qdisc_class_common *cl;
-       struct hlist_node *n;
        unsigned int h;
 
        h = qdisc_class_hash(id, hash->hashmask);
-       hlist_for_each_entry(cl, n, &hash->hash[h], hnode) {
+       hlist_for_each_entry(cl, &hash->hash[h], hnode) {
                if (cl->classid == id)
                        return cl;
        }