From mboxrd@z Thu Jan 1 00:00:00 1970 From: Tejun Heo Date: Wed, 18 Jun 2014 18:30:58 +0000 Subject: Re: [PATCH net-next 5/5] net: sctp: fix incorrect type in gfp initializer Message-Id: <20140618183058.GC11042@htj.dyndns.org> List-Id: References: <1402497297-27100-1-git-send-email-dborkman@redhat.com> <1402497297-27100-6-git-send-email-dborkman@redhat.com> <063D6719AE5E284EB5DD2968C1650D6D1725AF78@AcuExch.aculab.com> <5398712C.3000801@redhat.com> <063D6719AE5E284EB5DD2968C1650D6D1725B905@AcuExch.aculab.com> In-Reply-To: <063D6719AE5E284EB5DD2968C1650D6D1725B905@AcuExch.aculab.com> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: David Laight Cc: 'Alexei Starovoitov' , Daniel Borkmann , "davem@davemloft.net" , "netdev@vger.kernel.org" , "linux-sctp@vger.kernel.org" On Thu, Jun 12, 2014 at 08:46:44AM +0000, David Laight wrote: > I was slightly worried it might generate the boolean value - something > that you really don't want it to do. I don't think gcc is that stupid at this point. > I only looked at the output for the old version. > The compiler seemed to have converted: > if (preload) > x(); > y; > if (preload) > z(); > into: > if (preload) { > x(); y; z(); > } else { > y; > } > and then found out that z() was empty, leaving two copies of y(). So, nothing wrong, right? -- tejun