diff options
author | Allan Stephens <Allan.Stephens@windriver.com> | 2010-11-30 07:01:00 -0500 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2010-12-02 16:34:05 -0500 |
commit | 52fe7b725e0a1360d36c720ee87ab1e559df69db (patch) | |
tree | 2cbe8ac1d0cc16f3e83dfeda9c635688337a27e8 /net/tipc/subscr.c | |
parent | 38f232eae20cefed2e2379d77c54babb0de6d024 (diff) |
tipc: Eliminate useless initialization when creating subscriber
Removes initialization of a local variable that is always assigned
a different value before it is referenced.
Signed-off-by: Allan Stephens <Allan.Stephens@windriver.com>
Signed-off-by: Paul Gortmaker <paul.gortmaker@windriver.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/tipc/subscr.c')
-rw-r--r-- | net/tipc/subscr.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/net/tipc/subscr.c b/net/tipc/subscr.c index e13c89aeb6d2..23f43d03980c 100644 --- a/net/tipc/subscr.c +++ b/net/tipc/subscr.c | |||
@@ -542,7 +542,7 @@ static void subscr_named_msg_event(void *usr_handle, | |||
542 | int tipc_subscr_start(void) | 542 | int tipc_subscr_start(void) |
543 | { | 543 | { |
544 | struct tipc_name_seq seq = {TIPC_TOP_SRV, TIPC_TOP_SRV, TIPC_TOP_SRV}; | 544 | struct tipc_name_seq seq = {TIPC_TOP_SRV, TIPC_TOP_SRV, TIPC_TOP_SRV}; |
545 | int res = -1; | 545 | int res; |
546 | 546 | ||
547 | memset(&topsrv, 0, sizeof (topsrv)); | 547 | memset(&topsrv, 0, sizeof (topsrv)); |
548 | spin_lock_init(&topsrv.lock); | 548 | spin_lock_init(&topsrv.lock); |