Search Linux Wireless

Re: [PATCH 3/6] b43: N-PHY: add RSSI calculation for PHY rev < 3

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

 



On Monday 11 January 2010 23:19:52 Johannes Berg wrote:
> On Mon, 2010-01-11 at 23:13 +0100, Michael Buesch wrote:
> 
> > No I don't think so.
> > It's C standard that uninitialized elements on automatic variables are
> > initialized
> > to zero, _if_ at least one element is initialized to something.
> > So if you init one element to 0, all others will be 0, too.
> 
> AFAIK, you don't even have to init anything, since otherwise not
> mentioned fields will be set to 0. Hence, just = {} is sufficient for
> arrays and will hopefully compile to the same code as an explicit
> memset().

Oh, nice. You are right, indeed. I didn't know that.

-- 
Greetings, Michael.
--
To unsubscribe from this list: send the line "unsubscribe linux-wireless" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Index of Archives]     [Linux Host AP]     [ATH6KL]     [Linux Bluetooth]     [Linux Netdev]     [Kernel Newbies]     [Linux Kernel]     [IDE]     [Security]     [Git]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux ATA RAID]     [Samba]     [Device Mapper]
  Powered by Linux