From: Allan Stephens Date: Tue, 30 Nov 2010 12:01:00 +0000 (+0000) Subject: tipc: Eliminate useless initialization when creating subscriber X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=52fe7b725e0a1360d36c720ee87ab1e559df69db;p=GitHub%2Fmoto-9609%2Fandroid_kernel_motorola_exynos9610.git 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 Signed-off-by: Paul Gortmaker Signed-off-by: David S. Miller --- 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);