diff options
author | 2025-02-17 23:58:33 +0800 | |
---|---|---|
committer | 2025-02-18 18:12:12 -0800 | |
commit | 3a03f9ec5d333b9998fbc63fd3e075b9d1991b89 (patch) | |
tree | e0b21fcc5565eaef311889a02998e089cdd49a76 /net/lapb/lapb_timer.c | |
parent | net: Remove redundant variable declaration in __dev_change_flags() (diff) | |
download | wireguard-linux-3a03f9ec5d333b9998fbc63fd3e075b9d1991b89.tar.xz wireguard-linux-3a03f9ec5d333b9998fbc63fd3e075b9d1991b89.zip |
net: stmmac: Use str_enabled_disabled() helper
As kernel test robot reported, the following warning occurs:
cocci warnings: (new ones prefixed by >>)
>> drivers/net/ethernet/stmicro/stmmac/dwmac1000_core.c:582:6-8: opportunity for str_enabled_disabled(on)
Replace ternary (condition ? "enabled" : "disabled") with
str_enabled_disabled() from string_choices.h to improve readability,
maintain uniform string usage, and reduce binary size through linker
deduplication.
Reviewed-by: Huacai Chen <chenhuacai@loongson.cn>
Reviewed-by: Russell King (Oracle) <rmk+kernel@armlinux.org.uk>
Signed-off-by: Yu-Chun Lin <eleanor15x@gmail.com>
Link: https://patch.msgid.link/20250217155833.3105775-1-eleanor15x@gmail.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Diffstat (limited to 'net/lapb/lapb_timer.c')
0 files changed, 0 insertions, 0 deletions