projects
/
platform
/
adaptation
/
renesas_rcar
/
renesas_kernel.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
hlist: drop the node parameter from iterators
[platform/adaptation/renesas_rcar/renesas_kernel.git]
/
net
/
core
/
net-procfs.c
diff --git
a/net/core/net-procfs.c
b/net/core/net-procfs.c
index
0f6bb6f
..
3174f19
100644
(file)
--- a/
net/core/net-procfs.c
+++ b/
net/core/net-procfs.c
@@
-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 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)];
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;
}
if (++count == offset)
return dev;
}