diff options
author | Kuan-Wei Chiu <visitorckw@gmail.com> | 2025-08-14 17:38:27 +0800 |
---|---|---|
committer | Andrew Morton <akpm@linux-foundation.org> | 2025-09-13 17:32:47 -0700 |
commit | 0ca863b7c638803722dc5596b2d520812cf283b7 (patch) | |
tree | 592bf5d5f3154baf3b82e6908bcdb79ed7e1a237 /tools/testing/selftests/proc/proc-net-dev-lseek.c | |
parent | 7da017eaa43a215f68d42ebfd08d381134ea6356 (diff) |
alloc_tag: use str_on_off() helper
Replace the ternary (enable ? "on" : "off") with the str_on_off() 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/20250814093827.237980-1-visitorckw@gmail.com
Signed-off-by: Kuan-Wei Chiu <visitorckw@gmail.com>
Cc: Ching-Chun (Jim) Huang <jserv@ccns.ncku.edu.tw>
Cc: Kent Overstreet <kent.overstreet@linux.dev>
Cc: Suren Baghdasaryan <surenb@google.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