diff options
author | Allan Stephens <allan.stephens@windriver.com> | 2012-04-26 17:44:52 -0400 |
---|---|---|
committer | Paul Gortmaker <paul.gortmaker@windriver.com> | 2012-04-26 18:15:46 -0400 |
commit | bbe6a295d0a987068c89ca7e7b7291b754995754 (patch) | |
tree | d37fc9981cbf0501716c6159e6d45117886be4ef /net/tipc | |
parent | 2d98abb9fe132898d17b56fb4765687aff82c093 (diff) |
tipc: remove redundant memset and stale comment from subscr.c
Eliminate code to zero-out the main topology service structure,
which is already zeroed-out.
Get rid of a comment documenting a field of the main topology
service structure that no longer exists.
Both are cosmetic changes with no impact on runtime behaviour.
Signed-off-by: Allan Stephens <allan.stephens@windriver.com>
Signed-off-by: Paul Gortmaker <paul.gortmaker@windriver.com>
Diffstat (limited to 'net/tipc')
-rw-r--r-- | net/tipc/subscr.c | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/net/tipc/subscr.c b/net/tipc/subscr.c index b2964e9895d3..af93ea924f60 100644 --- a/net/tipc/subscr.c +++ b/net/tipc/subscr.c | |||
@@ -56,7 +56,6 @@ struct tipc_subscriber { | |||
56 | 56 | ||
57 | /** | 57 | /** |
58 | * struct top_srv - TIPC network topology subscription service | 58 | * struct top_srv - TIPC network topology subscription service |
59 | * @user_ref: TIPC userid of subscription service | ||
60 | * @setup_port: reference to TIPC port that handles subscription requests | 59 | * @setup_port: reference to TIPC port that handles subscription requests |
61 | * @subscription_count: number of active subscriptions (not subscribers!) | 60 | * @subscription_count: number of active subscriptions (not subscribers!) |
62 | * @subscriber_list: list of ports subscribing to service | 61 | * @subscriber_list: list of ports subscribing to service |
@@ -535,7 +534,6 @@ int tipc_subscr_start(void) | |||
535 | struct tipc_name_seq seq = {TIPC_TOP_SRV, TIPC_TOP_SRV, TIPC_TOP_SRV}; | 534 | struct tipc_name_seq seq = {TIPC_TOP_SRV, TIPC_TOP_SRV, TIPC_TOP_SRV}; |
536 | int res; | 535 | int res; |
537 | 536 | ||
538 | memset(&topsrv, 0, sizeof(topsrv)); | ||
539 | spin_lock_init(&topsrv.lock); | 537 | spin_lock_init(&topsrv.lock); |
540 | INIT_LIST_HEAD(&topsrv.subscriber_list); | 538 | INIT_LIST_HEAD(&topsrv.subscriber_list); |
541 | 539 | ||