From 91410573ef24c0c44b0e8daa8a51ff347871572e Mon Sep 17 00:00:00 2001 From: Gregory Nutt Date: Sat, 22 Sep 2018 14:39:11 -0600 Subject: [PATCH] fs/mount/fs_mount.c: Correct an error introduced in the last commit (but only when file systems that need MTD drivers are included. --- fs/mount/fs_mount.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/fs/mount/fs_mount.c b/fs/mount/fs_mount.c index 463dd7ba1c..b938120e2e 100644 --- a/fs/mount/fs_mount.c +++ b/fs/mount/fs_mount.c @@ -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);