diff options
author | Tom Gundersen <teg@jklm.no> | 2012-11-27 00:52:01 +0100 |
---|---|---|
committer | Tom Gundersen <teg@jklm.no> | 2012-11-27 00:56:09 +0100 |
commit | 1d634e21b453f3c80d7c6c4bd90a6b84e42a3d2a (patch) | |
tree | 707df498fd0c6bea302702f385953e7eaea70ad6 /src/fstab-generator/fstab-generator.c | |
parent | a83cbaccd03c3f28e47e9330f4a22ff65ce4b561 (diff) |
fstab-generator: drop mount_is_bind
Do the check in-line instead, as the function is now a bit pointless.
Diffstat (limited to 'src/fstab-generator/fstab-generator.c')
-rw-r--r-- | src/fstab-generator/fstab-generator.c | 8 |
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"); |