Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 327546
b: refs/heads/master
c: fa7f86f
h: refs/heads/master
v: v3
  • Loading branch information
Ying Xue authored and David S. Miller committed Aug 20, 2012
1 parent 718658c commit 5fb92da
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 4 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: fff3321d75b1a18231876a1aceb36eacbbf6221e
refs/heads/master: fa7f86f1bb5d8f08d10442a546252d2670b26f41
13 changes: 10 additions & 3 deletions trunk/net/tipc/eth_media.c
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,16 @@ struct eth_bearer {
static struct tipc_media eth_media_info;
static struct eth_bearer eth_bearers[MAX_ETH_BEARERS];
static int eth_started;
static struct notifier_block notifier;

static int recv_notification(struct notifier_block *nb, unsigned long evt,
void *dv);
/*
* Network device notifier info
*/
static struct notifier_block notifier = {
.notifier_call = recv_notification,
.priority = 0
};

/**
* eth_media_addr_set - initialize Ethernet media address structure
Expand Down Expand Up @@ -357,8 +366,6 @@ int tipc_eth_media_start(void)
if (res)
return res;

notifier.notifier_call = &recv_notification;
notifier.priority = 0;
res = register_netdevice_notifier(&notifier);
if (!res)
eth_started = 1;
Expand Down

0 comments on commit 5fb92da

Please sign in to comment.