Explorar o código

[LibOS] Remove redundant check in find_mount_from_uri()

Isaku Yamahata %!s(int64=6) %!d(string=hai) anos
pai
achega
fde333e968
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  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;