[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <063D6719AE5E284EB5DD2968C1650D6D1CCDAD79@AcuExch.aculab.com>
Date: Mon, 8 Feb 2016 11:51:34 +0000
From: David Laight <David.Laight@...LAB.COM>
To: 'Francois Romieu' <romieu@...zoreil.com>,
Robert Shearman <rshearma@...cade.com>
CC: "davem@...emloft.net" <davem@...emloft.net>,
"netdev@...r.kernel.org" <netdev@...r.kernel.org>,
Roopa Prabhu <roopa@...ulusnetworks.com>,
"Eric W. Biederman" <ebiederm@...ssion.com>
Subject: RE: [PATCH net-next 1/2] mpls: packet stats
From: Francois Romieu
> Sent: 06 February 2016 10:59
> > +void mpls_stats_inc_outucastpkts(struct net_device *dev,
> > + const struct sk_buff *skb)
> > +{
> > + struct mpls_dev *mdev;
> > + struct inet6_dev *in6dev;
>
> Nit: the scope can be reduced for both variables.
And hiding the definitions of variables in the middle of
functions just makes them harder to find.
David
Powered by blists - more mailing lists