diff options
author | 2024-09-05 17:25:39 +0800 | |
---|---|---|
committer | 2024-09-05 09:50:15 -0700 | |
commit | c2708ba91c3c1fba424b77de83b6fc45cbf38c46 (patch) | |
tree | 48b7ee80f2535ff364d18e38209d0b7ce0443acb /rust/helpers/task.c | |
parent | lib/string_choices: Add str_true_false()/str_false_true() helper (diff) | |
download | wireguard-linux-c2708ba91c3c1fba424b77de83b6fc45cbf38c46.tar.xz wireguard-linux-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 <lihongbo22@huawei.com>
Acked-by: Andy Shevchenko <andy@kernel.org>
Link: https://lore.kernel.org/r/20240905092540.2962122-2-lihongbo22@huawei.com
Signed-off-by: Kees Cook <kees@kernel.org>
Diffstat (limited to 'rust/helpers/task.c')
0 files changed, 0 insertions, 0 deletions