1
0
mirror of https://github.com/systemd/systemd.git synced 2024-10-30 23:21:22 +03:00

analyze: use empty_or_root() where appropriate

This commit is contained in:
Lennart Poettering 2019-04-02 14:48:50 +02:00
parent 84ce204a93
commit d737b451fe

View File

@ -296,10 +296,8 @@ static int assess_root_directory(
assert(ret_description);
*ret_badness =
(isempty(info->root_directory) ||
path_equal(info->root_directory, "/")) &&
(isempty(info->root_image) ||
path_equal(info->root_image, "/"));
empty_or_root(info->root_directory) ||
empty_or_root(info->root_image);
*ret_description = NULL;
return 0;