Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 56979
b: refs/heads/master
c: cb283ea
h: refs/heads/master
i:
  56977: 6b503b0
  56975: 4363463
v: v3
  • Loading branch information
Jon Paul Maloy authored and David S. Miller committed May 24, 2007
1 parent 9902044 commit 032336d
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 5 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: b8f558313506b5bc435f2e031f3bec4b1725098e
refs/heads/master: cb283ead710c342d9856af8507e2a42bf5c6576c
10 changes: 6 additions & 4 deletions trunk/net/tipc/eth_media.c
Original file line number Diff line number Diff line change
Expand Up @@ -120,18 +120,20 @@ static int recv_msg(struct sk_buff *buf, struct net_device *dev,

static int enable_bearer(struct tipc_bearer *tb_ptr)
{
struct net_device *dev, *pdev;
struct net_device *dev = NULL;
struct net_device *pdev = NULL;
struct eth_bearer *eb_ptr = &eth_bearers[0];
struct eth_bearer *stop = &eth_bearers[MAX_ETH_BEARERS];
char *driver_name = strchr((const char *)tb_ptr->name, ':') + 1;

/* Find device with specified name */
dev = NULL;
for_each_netdev(pdev)
if (!strncmp(dev->name, driver_name, IFNAMSIZ)) {

for_each_netdev(pdev){
if (!strncmp(pdev->name, driver_name, IFNAMSIZ)) {
dev = pdev;
break;
}
}
if (!dev)
return -ENODEV;

Expand Down

0 comments on commit 032336d

Please sign in to comment.