Skip to content
Snippets Groups Projects
Commit bb06d310 authored by Gregory Nutt's avatar Gregory Nutt
Browse files

Auto-mounter: Fix state setting. Not harmful other than it can cause a debug...

Auto-mounter:  Fix state setting.  Not harmful other than it can cause a debug assertion to fire if you manually unmount the media before removing it which is, of course, what you are supposed to do.
parent f492e0f0
No related branches found
No related tags found
No related merge requests found
......@@ -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:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment