Re: staging: dgap: Question about declaring variables

2014-05-22 Thread Dan Carpenter
There isn't a rule for that. regards, dan carpenter ___ devel mailing list de...@linuxdriverproject.org http://driverdev.linuxdriverproject.org/mailman/listinfo/driverdev-devel

Re: staging: dgap: Question about declaring variables

2014-05-22 Thread Mark Hounschell
On 05/22/2014 04:38 PM, Dan Carpenter wrote: > On Thu, May 22, 2014 at 01:49:22PM -0400, Mark Hounschell wrote: >> I understand that unnecessarily initializing them is wrong. But if they >> do need initialized, is it preferred to do it in the declaration or in >> the code before it is used? > > Wh

Re: staging: dgap: Question about declaring variables

2014-05-22 Thread Dan Carpenter
On Thu, May 22, 2014 at 01:49:22PM -0400, Mark Hounschell wrote: > I understand that unnecessarily initializing them is wrong. But if they > do need initialized, is it preferred to do it in the declaration or in > the code before it is used? Which ever is more clear. It's up to you. Or do you me