fstab-generator: drop mount_is_bind

Do the check in-line instead, as the function is now a bit pointless.
This commit is contained in:
Tom Gundersen 2012-11-27 00:52:01 +01:00
parent a83cbaccd0
commit 1d634e21b4
1 changed files with 1 additions and 7 deletions

View File

@ -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");