From 9b9158a765acb84519a43b946875b6cd7e8daefa Mon Sep 17 00:00:00 2001 From: Joachim Wiberg Date: Thu, 9 Sep 2021 08:51:26 +0200 Subject: [PATCH] Follow-up, coding style and drop extra print() Signed-off-by: Joachim Wiberg --- src/mount.c | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/src/mount.c b/src/mount.c index b8f5bd44..75e5a204 100644 --- a/src/mount.c +++ b/src/mount.c @@ -93,7 +93,7 @@ void unmount_tmpfs(void) while ((mnt = iterator("/proc/mounts", &fp))) { if (!strcmp("tmpfs", mnt->mnt_fsname) && !umount(mnt->mnt_dir)) - iterator_end(&fp); // Restart iteration + iterator_end(&fp); /* Restart iteration */ } } @@ -103,10 +103,8 @@ void unmount_regular(void) FILE *fp = NULL; while ((mnt = iterator("/proc/mounts", &fp))) { - if (!umount(mnt->mnt_dir)) { - print(0, "Unmounted %s", mnt->mnt_dir); - iterator_end(&fp); // Restart iteration - } + if (!umount(mnt->mnt_dir)) + iterator_end(&fp); /* Restart iteration */ } }