diff options
author | Kuan-Wei Chiu <visitorckw@gmail.com> | 2025-08-14 17:50:33 +0800 |
---|---|---|
committer | Andrew Morton <akpm@linux-foundation.org> | 2025-09-13 17:32:46 -0700 |
commit | 7da017eaa43a215f68d42ebfd08d381134ea6356 (patch) | |
tree | c656c61403b50595d73e068f682655978a9273c7 /tools/testing/selftests/proc/proc-net-dev-lseek.c | |
parent | 9a0ee378eb6ca39513dcfeffabd10037c2c9f2a0 (diff) |
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>
Diffstat (limited to 'tools/testing/selftests/proc/proc-net-dev-lseek.c')
0 files changed, 0 insertions, 0 deletions