openvortex-dev
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Openvortex-dev] Re: [Alsa-devel] Re: [ALSA - driver 0001138]: error


From: Takashi Iwai
Subject: Re: [Openvortex-dev] Re: [Alsa-devel] Re: [ALSA - driver 0001138]: errors when installing au8820 modules
Date: Wed, 08 Jun 2005 15:41:09 +0200
User-agent: Wanderlust/2.10.1 (Watching The Wheels) SEMI/1.14.5 (Awara-Onsen) FLIM/1.14.5 (Demachiyanagi) APEL/10.6 MULE XEmacs/21.4 (patch 15) (Security Through Obscurity) (i386-suse-linux)

At Wed, 8 Jun 2005 15:29:50 +0200,
Alien wrote:
> 
> Op woensdag 8 juni 2005 14:12, schreef Takashi Iwai:
> > At Wed, 8 Jun 2005 13:13:46 +0200,
> >
> > Alien wrote:
> > > > You don't need to define values if the static array is initialize to
> > > > zero.  In this case,
> > > >
> > > >         static u16 eq_levels[64];
> > > >
> > > > would be better.
> > > >
> > > >
> > > > Takashi
> > >
> > > you sure that this will initialize to 0 ? i seem to remember that C
> > > doesn't init arrays to 0... unless there's a memset somewhere, of course,
> > > i never wrote kernel stuff...
> >
> > It's sure.  Remeber that I mentioned "static" arrray.
> >
> >
> > Takashi
> 
> hmm, i never knew static arrays were initialized to 0...

Always good to learn something new ;)

In practice, kernel hackers prefers to get rid of unnecessary zero
initialization from the kernel code since it reduces the resultant
binary size, too.


Takashi




reply via email to

[Prev in Thread] Current Thread [Next in Thread]