aboutsummaryrefslogtreecommitdiffstats
path: root/net/unix/unix_bpf.c
diff options
context:
space:
mode:
authorKrzysztof Kozlowski <[email protected]>2025-01-14 19:06:12 +0000
committerStephen Boyd <[email protected]>2025-01-15 20:27:04 +0000
commitab9f0d04ffa9af09a8b0f44940df47c581f1cd00 (patch)
tree8c20ee808bf4ab84cea95aa5bafe617387a9f7ff /net/unix/unix_bpf.c
parentclk: clk-loongson2: Switch to use devm_clk_hw_register_fixed_rate_parent_data() (diff)
downloadkernel-ab9f0d04ffa9af09a8b0f44940df47c581f1cd00.tar.gz
kernel-ab9f0d04ffa9af09a8b0f44940df47c581f1cd00.zip
clk: 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. Reviewed-by: Florian Fainelli <[email protected]> Signed-off-by: Krzysztof Kozlowski <[email protected]> Link: https://lore.kernel.org/r/[email protected] Reviewed-by: Linus Walleij <[email protected]> Signed-off-by: Stephen Boyd <[email protected]>
Diffstat (limited to 'net/unix/unix_bpf.c')
0 files changed, 0 insertions, 0 deletions