diff options
Diffstat (limited to 'net/tipc/node_subscr.c')
-rw-r--r-- | net/tipc/node_subscr.c | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/net/tipc/node_subscr.c b/net/tipc/node_subscr.c index c3c2815ae630..7a27344108fe 100644 --- a/net/tipc/node_subscr.c +++ b/net/tipc/node_subscr.c | |||
@@ -41,11 +41,10 @@ | |||
41 | /** | 41 | /** |
42 | * tipc_nodesub_subscribe - create "node down" subscription for specified node | 42 | * tipc_nodesub_subscribe - create "node down" subscription for specified node |
43 | */ | 43 | */ |
44 | |||
45 | void tipc_nodesub_subscribe(struct tipc_node_subscr *node_sub, u32 addr, | 44 | void tipc_nodesub_subscribe(struct tipc_node_subscr *node_sub, u32 addr, |
46 | void *usr_handle, net_ev_handler handle_down) | 45 | void *usr_handle, net_ev_handler handle_down) |
47 | { | 46 | { |
48 | if (addr == tipc_own_addr) { | 47 | if (in_own_node(addr)) { |
49 | node_sub->node = NULL; | 48 | node_sub->node = NULL; |
50 | return; | 49 | return; |
51 | } | 50 | } |
@@ -66,7 +65,6 @@ void tipc_nodesub_subscribe(struct tipc_node_subscr *node_sub, u32 addr, | |||
66 | /** | 65 | /** |
67 | * tipc_nodesub_unsubscribe - cancel "node down" subscription (if any) | 66 | * tipc_nodesub_unsubscribe - cancel "node down" subscription (if any) |
68 | */ | 67 | */ |
69 | |||
70 | void tipc_nodesub_unsubscribe(struct tipc_node_subscr *node_sub) | 68 | void tipc_nodesub_unsubscribe(struct tipc_node_subscr *node_sub) |
71 | { | 69 | { |
72 | if (!node_sub->node) | 70 | if (!node_sub->node) |
@@ -82,7 +80,6 @@ void tipc_nodesub_unsubscribe(struct tipc_node_subscr *node_sub) | |||
82 | * | 80 | * |
83 | * Note: node is locked by caller | 81 | * Note: node is locked by caller |
84 | */ | 82 | */ |
85 | |||
86 | void tipc_nodesub_notify(struct tipc_node *node) | 83 | void tipc_nodesub_notify(struct tipc_node *node) |
87 | { | 84 | { |
88 | struct tipc_node_subscr *ns; | 85 | struct tipc_node_subscr *ns; |