diff options
Diffstat (limited to 'src/core/automount.c')
-rw-r--r-- | src/core/automount.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/core/automount.c b/src/core/automount.c index ecaa916ce3..9b0d1ca429 100644 --- a/src/core/automount.c +++ b/src/core/automount.c @@ -251,8 +251,7 @@ static void automount_set_state(Automount *a, AutomountState state) { if (state != AUTOMOUNT_RUNNING) automount_stop_expire(a); - if (state != AUTOMOUNT_WAITING && - state != AUTOMOUNT_RUNNING) + if (!IN_SET(state, AUTOMOUNT_WAITING, AUTOMOUNT_RUNNING)) unmount_autofs(a); if (state != old_state) |