From: Ying Xue Date: Wed, 15 Jun 2016 06:11:31 +0000 (+0800) Subject: tipc: eliminate uninitialized variable warning X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=c91522f860bb9dd4178c8280bbebd4f4321b7199;p=GitHub%2Fmoto-9609%2Fandroid_kernel_motorola_exynos9610.git tipc: eliminate uninitialized variable warning net/tipc/link.c: In function ‘tipc_link_timeout’: net/tipc/link.c:744:28: warning: ‘mtyp’ may be used uninitialized in this function [-Wuninitialized] Fixes: 42b18f605fea ("tipc: refactor function tipc_link_timeout()") Acked-by: Jon Maloy Signed-off-by: Ying Xue Signed-off-by: David S. Miller --- diff --git a/net/tipc/link.c b/net/tipc/link.c index 7059c94f33c5..67b6ab9f4c8d 100644 --- a/net/tipc/link.c +++ b/net/tipc/link.c @@ -704,7 +704,8 @@ static void link_profile_stats(struct tipc_link *l) */ int tipc_link_timeout(struct tipc_link *l, struct sk_buff_head *xmitq) { - int mtyp, rc = 0; + int mtyp = 0; + int rc = 0; bool state = false; bool probe = false; bool setup = false;