Re: [PATCH] mm/slab: One function call less in verify_redzone_free()

2019-07-06 Thread David Rientjes
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 o

Re: [PATCH] mm/slab: One function call less in verify_redzone_free()

2019-07-05 Thread Christopher Lameter
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.

[PATCH] mm/slab: One function call less in verify_redzone_free()

2019-07-05 Thread Markus Elfring
From: Markus Elfring Date: Fri, 5 Jul 2019 16:40:09 +0200 Avoid an extra function call by using a ternary operator instead of a conditional statement for a string literal selection. This issue was detected by using the Coccinelle software. Signed-off-by: Markus Elfring --- mm/slab.c | 8 -

[PATCH] mm/slab: One function call less in verify_redzone_free()

2019-07-05 Thread Markus Elfring
From: Markus Elfring Date: Fri, 5 Jul 2019 16:40:09 +0200 Avoid an extra function call by using a ternary operator instead of a conditional statement for a string literal selection. This issue was detected by using the Coccinelle software. Signed-off-by: Markus Elfring --- mm/slab.c | 8 -