Re: [PATCH] i2c: convert struct i2c_msg initialization to C99 format

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

 



On Fri, 3 Aug 2012 19:09:33 +0530, Datta, Shubhrajyoti wrote:
> On Fri, Aug 3, 2012 at 6:44 PM, Jean Delvare <khali@xxxxxxxxxxxx> wrote:
> > Good idea but I see no good reason to switch from struct-wide
> > initialization to per-field initialization. AFAIK per-field
> > initialization is less efficient and might leave some fields
> > uninitialized, while I seem to remember struct-wide initialization sets
> > them to 0.
> in case of locals also?

I _think_ so... But I admit I would be unable to quote the C99 standard
on that. If someone knows for sure, please speak up.

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


[Index of Archives]     [Linux GPIO]     [Linux SPI]     [Linux Hardward Monitoring]     [LM Sensors]     [Linux USB Devel]     [Linux Media]     [Video for Linux]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux