Browse Source

[LibOS] Remove redundant check in find_mount_from_uri()

Isaku Yamahata 6 years ago
parent
commit
fde333e968
1 changed files with 1 additions and 1 deletions
  1. 1 1
      LibOS/shim/src/fs/shim_fs.c

+ 1 - 1
LibOS/shim/src/fs/shim_fs.c

@@ -541,7 +541,7 @@ struct shim_mount * find_mount_from_uri (const char * uri)
             continue;
 
         if (!memcmp(qstrgetstr(&mount->uri), uri, mount->uri.len) &&
-            (uri[mount->uri.len] == '/' || uri[mount->uri.len] == '/')) {
+            uri[mount->uri.len] == '/') {
             if (mount->path.len > longest_path) {
                 longest_path = mount->path.len;
                 found = mount;