tipc: Eliminate useless initialization when creating subscriber
authorAllan Stephens <Allan.Stephens@windriver.com>
Tue, 30 Nov 2010 12:01:00 +0000 (12:01 +0000)
committerDavid S. Miller <davem@davemloft.net>
Thu, 2 Dec 2010 21:34:05 +0000 (13:34 -0800)
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>
net/tipc/subscr.c

index e13c89a..23f43d0 100644 (file)
@@ -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);