aboutsummaryrefslogtreecommitdiffstats
path: root/net/tipc
diff options
context:
space:
mode:
authorAllan Stephens <Allan.Stephens@windriver.com>2010-11-30 12:01:00 +0000
committerDavid S. Miller <davem@davemloft.net>2010-12-02 13:34:05 -0800
commit52fe7b725e0a1360d36c720ee87ab1e559df69db (patch)
tree2cbe8ac1d0cc16f3e83dfeda9c635688337a27e8 /net/tipc
parenttipc: Remove unused domain argument from multicast send routine (diff)
downloadlinux-dev-52fe7b725e0a1360d36c720ee87ab1e559df69db.tar.xz
linux-dev-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.c2
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);