diff options
Diffstat (limited to 'nuttx/fs')
-rw-r--r-- | nuttx/fs/fs_automount.c | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/nuttx/fs/fs_automount.c b/nuttx/fs/fs_automount.c index f23c5f057..9074d4159 100644 --- a/nuttx/fs/fs_automount.c +++ b/nuttx/fs/fs_automount.c @@ -328,14 +328,15 @@ static int automount_unmount(FAR struct automounter_state_s *priv) } } - /* Successfully unmounted */ - - priv->mounted = false; - return OK; + /* Fall through */ case OK_NOENT: - /* I suppose this is okay */ + /* The mountpoint is not present. This is normal behavior in the + * case where the user manually un-mounted the volume before removing + * media. Nice job, Mr. user. + */ + priv->mounted = false; return OK; default: |