diff options
| author | Yu-Chun Lin <[email protected]> | 2025-02-17 15:58:33 +0000 |
|---|---|---|
| committer | Jakub Kicinski <[email protected]> | 2025-02-19 02:12:12 +0000 |
| commit | 3a03f9ec5d333b9998fbc63fd3e075b9d1991b89 (patch) | |
| tree | e0b21fcc5565eaef311889a02998e089cdd49a76 /net/ipv4/tcp.c | |
| parent | net: Remove redundant variable declaration in __dev_change_flags() (diff) | |
| download | kernel-3a03f9ec5d333b9998fbc63fd3e075b9d1991b89.tar.gz kernel-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 <[email protected]>
Reviewed-by: Russell King (Oracle) <[email protected]>
Signed-off-by: Yu-Chun Lin <[email protected]>
Link: https://patch.msgid.link/[email protected]
Signed-off-by: Jakub Kicinski <[email protected]>
Diffstat (limited to 'net/ipv4/tcp.c')
0 files changed, 0 insertions, 0 deletions
