On Thu, 12 Oct 2006, Takashi Iwai wrote: > At Thu, 12 Oct 2006 11:14:02 +0100, > Liam Girdwood wrote: > > > > On Tue, 2006-10-10 at 19:06 +0200, Takashi Iwai wrote: > > > At Tue, 10 Oct 2006 17:11:54 +0100, > > > Liam Girdwood wrote: > > > > > > > > +/* used to disable sysclk if external crystal is used */ > > > > +static int extclk = 0; > > > > > > You can omit "= 0" for zero-initialization of a static variable. > > > > Removed, although I do like it for clarity. > > IIRC, the code size is reduced by omitting '= 0'. That is why kernel > code prefers the style without '= 0'. > Maybe it doesn't matter any more with the recetn gcc, though. The reason is that global variables with explicit initial values are allocated to the .data section which is always present in the kernel binary. When no explicit initial value is provided then the variable is allocated to the .bss section which is _not_ included in the kernel binary but initialized to zero at runtime. Nicolas ------------------------------------------------------------------------- Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642 _______________________________________________ Alsa-devel mailing list Alsa-devel@xxxxxxxxxxxxxxxxxxxxx https://lists.sourceforge.net/lists/listinfo/alsa-devel