summaryrefslogtreecommitdiff
path: root/src/mount
diff options
context:
space:
mode:
authorYu Watanabe <watanabe.yu+github@gmail.com>2021-06-24 04:29:40 +0900
committerYu Watanabe <watanabe.yu+github@gmail.com>2021-06-24 04:29:40 +0900
commitf565b8676fbdab115c068a57952f53a88e50f849 (patch)
tree394358410989faad9a9b640086e7df3e51954786 /src/mount
parent98f7a4c8bbebbbd0c7444fb6ea6b87848627c322 (diff)
downloadsystemd-f565b8676fbdab115c068a57952f53a88e50f849.tar.gz
dirent-util: use readdir_ensure_type() in readdir_no_dot() and FOREACH_DIRENT()
Diffstat (limited to 'src/mount')
-rw-r--r--src/mount/mount-tool.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/src/mount/mount-tool.c b/src/mount/mount-tool.c
index 1d78ff28c8..c213c905a1 100644
--- a/src/mount/mount-tool.c
+++ b/src/mount/mount-tool.c
@@ -787,8 +787,6 @@ static int find_loop_device(const char *backing_file, char **loop_dev) {
_cleanup_free_ char *sys = NULL, *fname = NULL;
int r;
- dirent_ensure_type(d, de);
-
if (de->d_type != DT_DIR)
continue;