Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 266122
b: refs/heads/master
c: 7e24477
h: refs/heads/master
v: v3
  • Loading branch information
Ying Xue authored and Paul Gortmaker committed Sep 18, 2011
1 parent b91d91d commit f770c46
Show file tree
Hide file tree
Showing 3 changed files with 2 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: 245f3d342dccad293d0cd0bbe231051b2daa695f
refs/heads/master: 7e2447763c28b8b67af67e757508c1a05c2c85b9
3 changes: 1 addition & 2 deletions trunk/net/tipc/subscr.c
Original file line number Diff line number Diff line change
Expand Up @@ -151,7 +151,7 @@ void tipc_subscr_report_overlap(struct subscription *sub,
if (!must && !(sub->filter & TIPC_SUB_PORTS))
return;

sub->event_cb(sub, found_lower, found_upper, event, port_ref, node);
subscr_send_event(sub, found_lower, found_upper, event, port_ref, node);
}

/**
Expand Down Expand Up @@ -365,7 +365,6 @@ static struct subscription *subscr_subscribe(struct tipc_subscr *s,
subscr_terminate(subscriber);
return NULL;
}
sub->event_cb = subscr_send_event;
INIT_LIST_HEAD(&sub->nameseq_list);
list_add(&sub->subscription_list, &subscriber->subscription_list);
sub->server_ref = subscriber->port_ref;
Expand Down
6 changes: 0 additions & 6 deletions trunk/net/tipc/subscr.h
Original file line number Diff line number Diff line change
Expand Up @@ -39,16 +39,11 @@

struct subscription;

typedef void (*tipc_subscr_event) (struct subscription *sub,
u32 found_lower, u32 found_upper,
u32 event, u32 port_ref, u32 node);

/**
* struct subscription - TIPC network topology subscription object
* @seq: name sequence associated with subscription
* @timeout: duration of subscription (in ms)
* @filter: event filtering to be done for subscription
* @event_cb: routine invoked when a subscription event is detected
* @timer: timer governing subscription duration (optional)
* @nameseq_list: adjacent subscriptions in name sequence's subscription list
* @subscription_list: adjacent subscriptions in subscriber's subscription list
Expand All @@ -61,7 +56,6 @@ struct subscription {
struct tipc_name_seq seq;
u32 timeout;
u32 filter;
tipc_subscr_event event_cb;
struct timer_list timer;
struct list_head nameseq_list;
struct list_head subscription_list;
Expand Down

0 comments on commit f770c46

Please sign in to comment.