fstab-generator: remove redundancy in mount_is_bind
This commit is contained in:
parent
16e6f6130b
commit
a83cbaccd0
|
@ -194,9 +194,7 @@ finish:
|
||||||
static bool mount_is_bind(struct mntent *me) {
|
static bool mount_is_bind(struct mntent *me) {
|
||||||
assert(me);
|
assert(me);
|
||||||
|
|
||||||
return
|
return hasmntopt(me, "bind");
|
||||||
hasmntopt(me, "bind") ||
|
|
||||||
streq(me->mnt_opts, "bind");
|
|
||||||
}
|
}
|
||||||
|
|
||||||
static bool mount_is_network(struct mntent *me) {
|
static bool mount_is_network(struct mntent *me) {
|
||||||
|
|
Loading…
Reference in New Issue