Thread (1 message) 1 message, 1 author, 2012-08-03

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

From: Jean Delvare <hidden>
Date: 2012-08-03 14:14:49

On Fri, 3 Aug 2012 19:09:33 +0530, Datta, Shubhrajyoti wrote:
On Fri, Aug 3, 2012 at 6:44 PM, Jean Delvare [off-list ref] wrote:
quoted
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
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help