Browse Source

去除romfs中一处冗余的判断

shaojinchun 5 years ago
parent
commit
699d71a0b9
1 changed files with 0 additions and 3 deletions
  1. 0 3
      components/dfs/filesystems/romfs/dfs_romfs.c

+ 0 - 3
components/dfs/filesystems/romfs/dfs_romfs.c

@@ -112,9 +112,6 @@ struct romfs_dirent *dfs_romfs_lookup(struct romfs_dirent *root_dirent, const ch
                 else
                 else
                 {
                 {
                     /* return file dirent */
                     /* return file dirent */
-                    if (subpath != NULL)
-                        break; /* not the end of path */
-
                     return &dirent[index];
                     return &dirent[index];
                 }
                 }
             }
             }