summaryrefslogtreecommitdiff
path: root/src/fstab-generator
diff options
context:
space:
mode:
Diffstat (limited to 'src/fstab-generator')
-rw-r--r--src/fstab-generator/fstab-generator.c8
1 files changed, 1 insertions, 7 deletions
diff --git a/src/fstab-generator/fstab-generator.c b/src/fstab-generator/fstab-generator.c
index bb4dd97b69..7b3bf11eda 100644
--- a/src/fstab-generator/fstab-generator.c
+++ b/src/fstab-generator/fstab-generator.c
@@ -191,12 +191,6 @@ finish:
return r;
}
-static bool mount_is_bind(struct mntent *me) {
- assert(me);
-
- return hasmntopt(me, "bind");
-}
-
static bool mount_is_network(struct mntent *me) {
assert(me);
@@ -229,7 +223,7 @@ static int add_mount(const char *what, const char *where, struct mntent *me) {
return 0;
isnetwork = mount_is_network(me);
- isbind = mount_is_bind(me);
+ isbind = !!hasmntopt(me, "bind");
noauto = !!hasmntopt(me, "noauto");
nofail = !!hasmntopt(me, "nofail");