Skip to content

Commit

Permalink
tipc: eliminate uninitialized variable warning
Browse files Browse the repository at this point in the history
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: 42b18f6 ("tipc: refactor function tipc_link_timeout()")
Acked-by: Jon Maloy <[email protected]>
Signed-off-by: Ying Xue <[email protected]>
Signed-off-by: David S. Miller <[email protected]>
  • Loading branch information
ying-xue authored and davem330 committed Jun 16, 2016
1 parent 66d95b6 commit c91522f
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion net/tipc/link.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit c91522f

Please sign in to comment.