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: 42b18f605f ("tipc: refactor function tipc_link_timeout()")
Acked-by: Jon Maloy <jon.maloy@ericsson.com>
Signed-off-by: Ying Xue <ying.xue@windriver.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
Ying Xue 2016-06-15 14:11:31 +08:00 committed by David S. Miller
parent 66d95b6705
commit c91522f860
1 changed files with 2 additions and 1 deletions

View File

@ -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 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 state = false;
bool probe = false; bool probe = false;
bool setup = false; bool setup = false;