]> git.ipfire.org Git - thirdparty/linux.git/commit
test_firmware: use str_true_false() helper
authorKuan-Wei Chiu <visitorckw@gmail.com>
Thu, 14 Aug 2025 09:50:33 +0000 (17:50 +0800)
committerAndrew Morton <akpm@linux-foundation.org>
Sun, 14 Sep 2025 00:32:46 +0000 (17:32 -0700)
commit7da017eaa43a215f68d42ebfd08d381134ea6356
treec656c61403b50595d73e068f682655978a9273c7
parent9a0ee378eb6ca39513dcfeffabd10037c2c9f2a0
test_firmware: use str_true_false() helper

Replace ternary (condition ?  "true" : "false") expressions with the
str_true_false() helper from string_choices.h.  This improves readability
by replacing the three-operand ternary with a single function call,
ensures consistent string output, and allows potential string
deduplication by the linker, resulting in a slightly smaller binary.

Link: https://lkml.kernel.org/r/20250814095033.244034-1-visitorckw@gmail.com
Signed-off-by: Kuan-Wei Chiu <visitorckw@gmail.com>
Cc: Kuan-Wei Chiu <visitorckw@gmail.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
lib/test_firmware.c