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.

This commit is contained in:
Gregory Nutt 2014-07-30 11:05:08 -06:00
parent f492e0f094
commit bb06d31038

View File

@ -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: