vold: Don't fail to return path if volume isn't mounted

Signed-off-by: San Mehat <san@google.com>
gugelfrei
San Mehat 15 years ago
parent 5817821cf1
commit a4dc3b15b7

@ -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…
Cancel
Save