diff --git a/fs/mount/fs_mount.c b/fs/mount/fs_mount.c index 3e33c75393..921decd1de 100644 --- a/fs/mount/fs_mount.c +++ b/fs/mount/fs_mount.c @@ -284,7 +284,7 @@ int nx_mount(FAR const char *source, FAR const char *target, #ifdef BDFS_SUPPORT if (source != NULL && - (ret = find_blockdriver(source, mountflags, &drvr_inode)) >= 0) + find_blockdriver(source, mountflags, &drvr_inode) >= 0) { /* Find the block based file system */