aboutsummaryrefslogtreecommitdiffstats
path: root/net/unix/sysctl_net_unix.c
diff options
context:
space:
mode:
authorKrzysztof Kozlowski <[email protected]>2025-01-15 19:47:03 +0000
committerDavid S. Miller <[email protected]>2025-01-20 09:23:25 +0000
commit544c9394065fdbb733349bcd1464087d6e12d28e (patch)
treed6a795426cd1373be8d11b679b428ef6178d38b9 /net/unix/sysctl_net_unix.c
parentnet: sched: refine software bypass handling in tc_run (diff)
downloadkernel-544c9394065fdbb733349bcd1464087d6e12d28e.tar.gz
kernel-544c9394065fdbb733349bcd1464087d6e12d28e.zip
dsa: Use str_enable_disable-like helpers
Replace ternary (condition ? "enable" : "disable") syntax with helpers from string_choices.h because: 1. Simple function call with one argument is easier to read. Ternary operator has three arguments and with wrapping might lead to quite long code. 2. Is slightly shorter thus also easier to read. 3. It brings uniformity in the text - same string. 4. Allows deduping by the linker, which results in a smaller binary file. Signed-off-by: Krzysztof Kozlowski <[email protected]> Reviewed-by: Linus Walleij <[email protected]> Reviewed-by: Vladimir Oltean <[email protected]> Signed-off-by: David S. Miller <[email protected]>
Diffstat (limited to 'net/unix/sysctl_net_unix.c')
0 files changed, 0 insertions, 0 deletions