summaryrefslogtreecommitdiff
path: root/extmod/vfs.c
diff options
context:
space:
mode:
Diffstat (limited to 'extmod/vfs.c')
-rw-r--r--extmod/vfs.c8
1 files changed, 2 insertions, 6 deletions
diff --git a/extmod/vfs.c b/extmod/vfs.c
index d1291068a..3cb7af1b4 100644
--- a/extmod/vfs.c
+++ b/extmod/vfs.c
@@ -83,12 +83,8 @@ mp_vfs_mount_t *mp_vfs_lookup_path(const char *path, const char **path_out) {
}
}
- // if we get here then there's nothing mounted on /
-
- if (is_abs) {
- // path began with / and was not found
- return MP_VFS_NONE;
- }
+ // if we get here then there's nothing mounted on /, so the path doesn't exist
+ return MP_VFS_NONE;
}
// a relative path within a mounted device