nsflags: drop namespace_flag_to_string_many_with_check()

We always ignore the unused bits. So, it is not necessary to check
them.
This commit is contained in:
Yu Watanabe
2018-05-05 11:07:37 +09:00
parent 4b4ee0f781
commit a3f8b0ef45
2 changed files with 1 additions and 8 deletions
-7
View File
@@ -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;