diff options
author | Allan Stephens <Allan.Stephens@windriver.com> | 2010-11-30 12:01:00 +0000 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2010-12-02 13:34:05 -0800 |
commit | 52fe7b725e0a1360d36c720ee87ab1e559df69db (patch) | |
tree | 2cbe8ac1d0cc16f3e83dfeda9c635688337a27e8 /net/tipc | |
parent | 38f232eae20cefed2e2379d77c54babb0de6d024 (diff) | |
download | talos-op-linux-52fe7b725e0a1360d36c720ee87ab1e559df69db.tar.gz talos-op-linux-52fe7b725e0a1360d36c720ee87ab1e559df69db.zip |
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')
-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, int tipc_subscr_start(void) { struct tipc_name_seq seq = {TIPC_TOP_SRV, TIPC_TOP_SRV, TIPC_TOP_SRV}; - int res = -1; + int res; memset(&topsrv, 0, sizeof (topsrv)); spin_lock_init(&topsrv.lock); |