summaryrefslogtreecommitdiff
path: root/net/unix/sysctl_net_unix.c
diff options
context:
space:
mode:
authorKrzysztof Kozlowski <krzysztof.kozlowski@linaro.org>2025-01-15 22:47:03 +0300
committerDavid S. Miller <davem@davemloft.net>2025-01-20 12:23:25 +0300
commit544c9394065fdbb733349bcd1464087d6e12d28e (patch)
treed6a795426cd1373be8d11b679b428ef6178d38b9 /net/unix/sysctl_net_unix.c
parenta12c76a03386e32413ae8eaaefa337e491880632 (diff)
downloadlinux-544c9394065fdbb733349bcd1464087d6e12d28e.tar.xz
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 <krzysztof.kozlowski@linaro.org> Reviewed-by: Linus Walleij <linus.walleij@linaro.org> Reviewed-by: Vladimir Oltean <olteanv@gmail.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/unix/sysctl_net_unix.c')
0 files changed, 0 insertions, 0 deletions