[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <alpine.DEB.2.21.1907061542480.103032@chino.kir.corp.google.com>
Date: Sat, 6 Jul 2019 15:45:10 -0700 (PDT)
From: David Rientjes <rientjes@...gle.com>
To: Christopher Lameter <cl@...ux.com>
cc: Markus Elfring <Markus.Elfring@....de>, linux-mm@...ck.org,
Andrew Morton <akpm@...ux-foundation.org>,
Joonsoo Kim <iamjoonsoo.kim@....com>,
Pekka Enberg <penberg@...nel.org>,
LKML <linux-kernel@...r.kernel.org>,
kernel-janitors@...r.kernel.org
Subject: Re: [PATCH] mm/slab: One function call less in
verify_redzone_free()
On Fri, 5 Jul 2019, Christopher Lameter wrote:
> On Fri, 5 Jul 2019, Markus Elfring wrote:
>
> > Avoid an extra function call by using a ternary operator instead of
> > a conditional statement for a string literal selection.
>
> Well. I thought the compiler does that on its own? And the tenary operator
> makes the code difficult to read.
>
Right, and I don't understand the changelog: yes, there's one less
function call in the source but functionally there's still a conditional;
this isn't even optimizing DEBUG builds.
Powered by blists - more mailing lists