]> git.proxmox.com Git - mirror_ubuntu-bionic-kernel.git/blobdiff - net/core/net-procfs.c
hlist: drop the node parameter from iterators
[mirror_ubuntu-bionic-kernel.git] / net / core / net-procfs.c
index 0f6bb6f8d391b6fde195303613a5926cc214dba1..3174f1998ee6b33509bd606df6a4890e24420f6b 100644 (file)
@@ -16,12 +16,11 @@ static inline struct net_device *dev_from_same_bucket(struct seq_file *seq, loff
 {
        struct net *net = seq_file_net(seq);
        struct net_device *dev;
-       struct hlist_node *p;
        struct hlist_head *h;
        unsigned int count = 0, offset = get_offset(*pos);
 
        h = &net->dev_name_head[get_bucket(*pos)];
-       hlist_for_each_entry_rcu(dev, p, h, name_hlist) {
+       hlist_for_each_entry_rcu(dev, h, name_hlist) {
                if (++count == offset)
                        return dev;
        }