diff options
| author | Hongbo Li <[email protected]> | 2024-09-05 09:25:39 +0000 |
|---|---|---|
| committer | Kees Cook <[email protected]> | 2024-09-05 16:50:15 +0000 |
| commit | c2708ba91c3c1fba424b77de83b6fc45cbf38c46 (patch) | |
| tree | 48b7ee80f2535ff364d18e38209d0b7ce0443acb /rust/helpers/security.c | |
| parent | lib/string_choices: Add str_true_false()/str_false_true() helper (diff) | |
| download | kernel-c2708ba91c3c1fba424b77de83b6fc45cbf38c46.tar.gz kernel-c2708ba91c3c1fba424b77de83b6fc45cbf38c46.zip | |
lib/string_choices: Introduce several opposite string choice helpers
Similar to the exists helper: str_enable_disable/
str_enabled_disabled/str_on_off/str_yes_no helpers, we can
add the opposite helpers. That's str_disable_enable,
str_disabled_enabled, str_off_on and str_no_yes.
There are more than 10 cases currently (expect
str_disable_enable now has 3 use cases) exist in the code
can be replaced with these helper.
Signed-off-by: Hongbo Li <[email protected]>
Acked-by: Andy Shevchenko <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Kees Cook <[email protected]>
Diffstat (limited to 'rust/helpers/security.c')
0 files changed, 0 insertions, 0 deletions
