[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-Id: <20140731.140559.2090702986159656213.davem@davemloft.net>
Date: Thu, 31 Jul 2014 14:05:59 -0700 (PDT)
From: David Miller <davem@...emloft.net>
To: aaron.f.brown@...el.com
Cc: akeem.g.abodunrin@...el.com, netdev@...r.kernel.org,
gospo@...hat.com, sassmann@...hat.com
Subject: Re: [net-next 06/15] i40e: Move some variable declarations out of
a loop
From: Aaron Brown <aaron.f.brown@...el.com>
Date: Wed, 30 Jul 2014 17:32:02 -0700
> From: Akeem G Abodunrin <akeem.g.abodunrin@...el.com>
>
> Declare some variables once outside of the loop instead of in
> every iteration of the loop.
>
> Change-ID: I436913777c7da3c16dc0031b59e3ffa61de74718
> Signed-off-by: Akeem G Abodunrin <akeem.g.abodunrin@...el.com>
> Tested-by: Jim Young <jamesx.m.young@...el.com>
> Signed-off-by: Aaron Brown <aaron.f.brown@...el.com>
Why? Decreasing the scope of variables makes the code easier to
understand and audit.
Now that it's declared at the top level people have to check whether
is it initialized properly in all possible code paths, in the entire
function, rather than just inside of the loop.
Please respin this series with this patch removed, thanks.
--
To unsubscribe from this list: send the line "unsubscribe netdev" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Powered by blists - more mailing lists