diff options
author | Allan Stephens <Allan.Stephens@windriver.com> | 2010-11-30 13:01:00 +0100 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2010-12-02 22:34:05 +0100 |
commit | 52fe7b725e0a1360d36c720ee87ab1e559df69db (patch) | |
tree | 2cbe8ac1d0cc16f3e83dfeda9c635688337a27e8 /net/tipc/subscr.c | |
parent | tipc: Remove unused domain argument from multicast send routine (diff) | |
download | linux-52fe7b725e0a1360d36c720ee87ab1e559df69db.tar.xz 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/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, 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); |