From: Jean Delvare <khali-PUYAD+kWke1g9hUCZPvPmw@public.gmane.org>
To: "Datta, Shubhrajyoti" <shubhrajyoti-l0cyMroinI0@public.gmane.org>
Cc: linux-i2c-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
Subject: Re: [PATCH] i2c: convert struct i2c_msg initialization to C99 format
Date: Fri, 3 Aug 2012 16:14:49 +0200 [thread overview]
Message-ID: <20120803161449.5dbb3295@endymion.delvare> (raw)
In-Reply-To: <CANQgH-bmTdZ1z=Vbeg07mZ-FLRBrzhuf+Wz1Uv2GcU2dWW9TGA-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
On Fri, 3 Aug 2012 19:09:33 +0530, Datta, Shubhrajyoti wrote:
> On Fri, Aug 3, 2012 at 6:44 PM, Jean Delvare <khali-PUYAD+kWke1g9hUCZPvPmw@public.gmane.org> 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
next prev parent reply other threads:[~2012-08-03 14:14 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-08-03 11:55 [PATCH] i2c: convert struct i2c_msg initialization to C99 format Shubhrajyoti D
[not found] ` <1343994924-2341-1-git-send-email-shubhrajyoti-l0cyMroinI0@public.gmane.org>
2012-08-03 13:14 ` Jean Delvare
[not found] ` <20120803151412.0cb16ed6-R0o5gVi9kd7kN2dkZ6Wm7A@public.gmane.org>
2012-08-03 13:39 ` Datta, Shubhrajyoti
[not found] ` <CANQgH-bmTdZ1z=Vbeg07mZ-FLRBrzhuf+Wz1Uv2GcU2dWW9TGA-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2012-08-03 14:14 ` Jean Delvare [this message]
-- strict thread matches above, loose matches on Subject: below --
2012-08-03 11:52 Shubhrajyoti D
[not found] ` <1343994764-2286-1-git-send-email-shubhrajyoti-l0cyMroinI0@public.gmane.org>
2012-08-03 11:54 ` Datta, Shubhrajyoti
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20120803161449.5dbb3295@endymion.delvare \
--to=khali-puyad+kwke1g9huczpvpmw@public.gmane.org \
--cc=linux-i2c-u79uwXL29TY76Z2rM5mHXA@public.gmane.org \
--cc=shubhrajyoti-l0cyMroinI0@public.gmane.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).