tipc: Eliminate useless initialization when creating subscriber
authorAllan Stephens <[email protected]>
Tue, 30 Nov 2010 12:01:00 +0000 (12:01 +0000)
committerDavid S. Miller <[email protected]>
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 <[email protected]>
Signed-off-by: Paul Gortmaker <[email protected]>
Signed-off-by: David S. Miller <[email protected]>
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);