Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 171091
b: refs/heads/master
c: 0bd8d53
h: refs/heads/master
i:
  171089: 622bd84
  171087: fd0a191
v: v3
  • Loading branch information
Eric Dumazet authored and David S. Miller committed Oct 30, 2009
1 parent e21e1c9 commit 92310e5
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 9 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 24540535d33f72505807be3e7ef2e94f3726f971
refs/heads/master: 0bd8d53656da72bc065766b5f2a05ca738020b8a
16 changes: 8 additions & 8 deletions trunk/net/core/dev.c
Original file line number Diff line number Diff line change
Expand Up @@ -587,13 +587,13 @@ __setup("netdev=", netdev_boot_setup);
struct net_device *__dev_get_by_name(struct net *net, const char *name)
{
struct hlist_node *p;
struct net_device *dev;
struct hlist_head *head = dev_name_hash(net, name);

hlist_for_each(p, dev_name_hash(net, name)) {
struct net_device *dev
= hlist_entry(p, struct net_device, name_hlist);
hlist_for_each_entry(dev, p, head, name_hlist)
if (!strncmp(dev->name, name, IFNAMSIZ))
return dev;
}

return NULL;
}
EXPORT_SYMBOL(__dev_get_by_name);
Expand Down Expand Up @@ -638,13 +638,13 @@ EXPORT_SYMBOL(dev_get_by_name);
struct net_device *__dev_get_by_index(struct net *net, int ifindex)
{
struct hlist_node *p;
struct net_device *dev;
struct hlist_head *head = dev_index_hash(net, ifindex);

hlist_for_each(p, dev_index_hash(net, ifindex)) {
struct net_device *dev
= hlist_entry(p, struct net_device, index_hlist);
hlist_for_each_entry(dev, p, head, index_hlist)
if (dev->ifindex == ifindex)
return dev;
}

return NULL;
}
EXPORT_SYMBOL(__dev_get_by_index);
Expand Down

0 comments on commit 92310e5

Please sign in to comment.