vold: Don't fail to return path if volume isn't mounted
Signed-off-by: San Mehat <san@google.com>
This commit is contained in:
parent
5817821cf1
commit
a4dc3b15b7
1 changed files with 0 additions and 5 deletions
|
@ -165,11 +165,6 @@ int VolumeManager::getAsecMountPath(const char *id, char *buffer, int maxlen) {
|
|||
char mountPoint[255];
|
||||
|
||||
snprintf(mountPoint, sizeof(mountPoint), "/asec/%s", id);
|
||||
|
||||
if (!isMountpointMounted(mountPoint)) {
|
||||
errno = ENOENT;
|
||||
return -1;
|
||||
}
|
||||
snprintf(buffer, maxlen, "/asec/%s", id);
|
||||
return 0;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue