Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit c91522f8 authored by Ying Xue's avatar Ying Xue Committed by David S. Miller
Browse files

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: 42b18f60 ("tipc: refactor function tipc_link_timeout()")
Acked-by: default avatarJon Maloy <jon.maloy@ericsson.com>
Signed-off-by: default avatarYing Xue <ying.xue@windriver.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent 66d95b67
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -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;