mirror of
https://github.com/apache/nuttx.git
synced 2026-05-23 14:49:22 +08:00
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:
+2
-2
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user