From mboxrd@z Thu Jan 1 00:00:00 1970 From: Takashi Iwai Subject: Re: [Openvortex-dev] Re: Re: [ALSA - driver 0001138]: errors when installing au8820 modules Date: Wed, 08 Jun 2005 15:41:09 +0200 Message-ID: References: <200506081313.48981.alien999999999@users.sourceforge.net> <200506081529.53532.alien999999999@users.sourceforge.net> Mime-Version: 1.0 (generated by SEMI 1.14.5 - "Awara-Onsen") Content-Type: text/plain; charset=US-ASCII Return-path: In-Reply-To: <200506081529.53532.alien999999999@users.sourceforge.net> Sender: alsa-devel-admin@lists.sourceforge.net Errors-To: alsa-devel-admin@lists.sourceforge.net List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , List-Archive: To: Alien Cc: Igor Kovalenko , openvortex-dev@nongnu.org, Raymond , alsa-devel@lists.sourceforge.net List-Id: alsa-devel@alsa-project.org 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 ------------------------------------------------------- This SF.Net email is sponsored by: NEC IT Guy Games. How far can you shotput a projector? How fast can you ride your desk chair down the office luge track? If you want to score the big prize, get to know the little guy. Play to win an NEC 61" plasma display: http://www.necitguy.com/?r=20