]> git.karo-electronics.de Git - linux-beck.git/commitdiff
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 e13c89aeb6d2116ff6528ce4af0738d014c5088b..23f43d03980cfd36d4ebb95ddb7dd3b685269f13 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);