fs/mount/fs_mount.c: Correct an error introduced in the last commit (but only when file systems that need MTD drivers are included.

This commit is contained in:
Gregory Nutt 2018-09-22 14:39:11 -06:00
parent 992b293122
commit 91410573ef

View File

@ -295,9 +295,9 @@ int mount(FAR const char *source, FAR const char *target,
#ifdef MDFS_SUPPORT
if (source != NULL && (mops = mount_findfs(g_mdfsmap, filesystemtype)) != NULL)
{
/* Find the named MTD driver */
/* Find the named MTD driver. NOTE: mountflags are ignored. */
ret = find_mtddriver(source, mountflags, &drvr_inode);
ret = find_mtddriver(source, &drvr_inode);
if (ret < 0)
{
ferr("ERROR: Failed to find MTD driver %s\n", source);