xtensa: One function call less in bootmem_init()
authorMarkus Elfring <elfring@users.sourceforge.net>
Fri, 5 Jul 2019 16:33:58 +0000 (18:33 +0200)
committerMax Filippov <jcmvbkbc@gmail.com>
Fri, 5 Jul 2019 19:02:37 +0000 (12:02 -0700)
commit831c4f3da83e260df943dfb982d77cef5cba2c49
tree2d2df97b5fb0a4cb78f9a6610e68bc9495f45e33
parent7d5bdc0cf24f423b37dd4e5591924d088d0f34a9
xtensa: One function call less in bootmem_init()

Avoid an extra function call by using a ternary operator instead of
a conditional statement for a setting selection.

This issue was detected by using the Coccinelle software.

Signed-off-by: Markus Elfring <elfring@users.sourceforge.net>
Message-Id: <495c9f2e-7880-ee9a-5c61-eee598bb24c2@web.de>
Signed-off-by: Max Filippov <jcmvbkbc@gmail.com>
arch/xtensa/mm/init.c