diff options
| author | Krzysztof Kozlowski <[email protected]> | 2025-01-14 19:26:42 +0000 |
|---|---|---|
| committer | Joerg Roedel <[email protected]> | 2025-01-17 08:00:37 +0000 |
| commit | 54e7d90089b8100f120d7c2a5f3daee96eb6e203 (patch) | |
| tree | 28f40a59fc65c35ef0f8d9017f08f4b59f7819f6 /net/switchdev/switchdev.c | |
| parent | iommu: Remove the remove_dev_pasid op (diff) | |
| download | kernel-54e7d90089b8100f120d7c2a5f3daee96eb6e203.tar.gz kernel-54e7d90089b8100f120d7c2a5f3daee96eb6e203.zip | |
iommu: 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]>
Acked-by: Heiko Stuebner <[email protected]>
Reviewed-by: Jason Gunthorpe <[email protected]>
Acked-by: Pranjal Shrivastava <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Joerg Roedel <[email protected]>
Diffstat (limited to 'net/switchdev/switchdev.c')
0 files changed, 0 insertions, 0 deletions
