diff options
author | Yu Watanabe <watanabe.yu+github@gmail.com> | 2018-05-01 10:44:19 +0900 |
---|---|---|
committer | Yu Watanabe <watanabe.yu+github@gmail.com> | 2018-05-05 11:07:37 +0900 |
commit | a3f8b0ef450d6320cceae2e7d8d92ec919ca1a97 (patch) | |
tree | 4dc3e1e2b50c9dee1efdddaba125a5b51ce37eaf /src/shared/nsflags.h | |
parent | 4b4ee0f781f6eaeb5c0dc8e2f9ea65ff8414356c (diff) | |
download | systemd-a3f8b0ef450d6320cceae2e7d8d92ec919ca1a97.tar.gz |
nsflags: drop namespace_flag_to_string_many_with_check()
We always ignore the unused bits. So, it is not necessary to check
them.
Diffstat (limited to 'src/shared/nsflags.h')
-rw-r--r-- | src/shared/nsflags.h | 7 |
1 files changed, 0 insertions, 7 deletions
diff --git a/src/shared/nsflags.h b/src/shared/nsflags.h index c5bc83e723..fb4b249d94 100644 --- a/src/shared/nsflags.h +++ b/src/shared/nsflags.h @@ -29,13 +29,6 @@ unsigned long namespace_flag_from_string(const char *name); int namespace_flag_from_string_many(const char *name, unsigned long *ret); int namespace_flag_to_string_many(unsigned long flags, char **ret); -static inline int namespace_flag_to_string_many_with_check(unsigned long n, char **s) { - if ((n & NAMESPACE_FLAGS_ALL) != n) - return -EINVAL; - - return namespace_flag_to_string_many(n, s); -} - struct namespace_flag_map { unsigned long flag; const char *name; |