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:
parent
84ce204a93
commit
d737b451fe
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user