summaryrefslogtreecommitdiff
path: root/src/shared/nsflags.c
diff options
context:
space:
mode:
authorZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>2016-11-11 12:58:41 -0500
committerLennart Poettering <lennart@poettering.net>2016-11-11 18:58:41 +0100
commitc58bd76a6af673196ad283131cbe3edcf2bf6291 (patch)
treef6e10c3e79cd25b9eca6be7b2fa024ef009a29b5 /src/shared/nsflags.c
parent5f36e3d30375cf04292bbc1bf3f4d7512cf80139 (diff)
tree-wide: make invocations of extract_first_word more uniform (#4627)
extract_first_words deals fine with the string being NULL, so drop the upfront check for that.
Diffstat (limited to 'src/shared/nsflags.c')
-rw-r--r--src/shared/nsflags.c5
1 files changed, 0 insertions, 5 deletions
diff --git a/src/shared/nsflags.c b/src/shared/nsflags.c
index 8fcbe97ba7..911779a28f 100644
--- a/src/shared/nsflags.c
+++ b/src/shared/nsflags.c
@@ -69,11 +69,6 @@ int namespace_flag_from_string_many(const char *name, unsigned long *ret) {
assert_se(ret);
- if (!name) {
- *ret = 0;
- return 0;
- }
-
for (;;) {
_cleanup_free_ char *word = NULL;
unsigned long f;