1
0
mirror of https://github.com/systemd/systemd.git synced 2025-08-24 09:49:49 +03:00

mount: remove unnecessary initialization of device_wants_mount and 'if'

This commit is contained in:
Lennart Poettering
2018-11-28 12:33:45 +01:00
parent a26592cf58
commit 32a5f8fe22

View File

@ -312,7 +312,7 @@ static int mount_add_mount_dependencies(Mount *m) {
} }
static int mount_add_device_dependencies(Mount *m) { static int mount_add_device_dependencies(Mount *m) {
bool device_wants_mount = false; bool device_wants_mount;
UnitDependencyMask mask; UnitDependencyMask mask;
MountParameters *p; MountParameters *p;
UnitDependency dep; UnitDependency dep;
@ -342,8 +342,8 @@ static int mount_add_device_dependencies(Mount *m) {
if (path_equal(m->where, "/")) if (path_equal(m->where, "/"))
return 0; return 0;
if (mount_is_auto(p) && !mount_is_automount(p) && MANAGER_IS_SYSTEM(UNIT(m)->manager)) device_wants_mount =
device_wants_mount = true; mount_is_auto(p) && !mount_is_automount(p) && MANAGER_IS_SYSTEM(UNIT(m)->manager);
/* Mount units from /proc/self/mountinfo are not bound to devices /* Mount units from /proc/self/mountinfo are not bound to devices
* by default since they're subject to races when devices are * by default since they're subject to races when devices are