Acked-by: me ///jon
> -----Original Message----- > From: Ying Xue [mailto:[email protected]] > Sent: Tuesday, 07 June, 2016 12:12 > To: [email protected]; [email protected] > Cc: Jon Maloy; Ying Xue; [email protected] > Subject: [PATCH] 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()") > Signed-off-by: Ying Xue <[email protected]> > --- > net/tipc/link.c | 3 ++- > 1 file changed, 2 insertions(+), 1 deletion(-) > > diff --git a/net/tipc/link.c b/net/tipc/link.c > index 7059c94..67b6ab9 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; > -- > 1.7.9.5 ------------------------------------------------------------------------------ What NetFlow Analyzer can do for you? Monitors network bandwidth and traffic patterns at an interface-level. Reveals which users, apps, and protocols are consuming the most bandwidth. Provides multi-vendor support for NetFlow, J-Flow, sFlow and other flows. Make informed decisions using capacity planning reports. https://ad.doubleclick.net/ddm/clk/305295220;132659582;e _______________________________________________ tipc-discussion mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/tipc-discussion
