analyze: use empty_or_root() where appropriate

This commit is contained in:
Lennart Poettering
2019-04-02 14:53:25 +02:00
parent 84ce204a93
commit d737b451fe
+2 -4
View File
@@ -296,10 +296,8 @@ static int assess_root_directory(
assert(ret_description); assert(ret_description);
*ret_badness = *ret_badness =
(isempty(info->root_directory) || empty_or_root(info->root_directory) ||
path_equal(info->root_directory, "/")) && empty_or_root(info->root_image);
(isempty(info->root_image) ||
path_equal(info->root_image, "/"));
*ret_description = NULL; *ret_description = NULL;
return 0; return 0;