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:
San Mehat 2010-01-22 14:48:31 -08:00
parent 5817821cf1
commit a4dc3b15b7

View file

@ -165,11 +165,6 @@ int VolumeManager::getAsecMountPath(const char *id, char *buffer, int maxlen) {
char mountPoint[255]; char mountPoint[255];
snprintf(mountPoint, sizeof(mountPoint), "/asec/%s", id); snprintf(mountPoint, sizeof(mountPoint), "/asec/%s", id);
if (!isMountpointMounted(mountPoint)) {
errno = ENOENT;
return -1;
}
snprintf(buffer, maxlen, "/asec/%s", id); snprintf(buffer, maxlen, "/asec/%s", id);
return 0; return 0;
} }