From a4dc3b15b7886f661675ab5243800c80831e549b Mon Sep 17 00:00:00 2001 From: San Mehat Date: Fri, 22 Jan 2010 14:48:31 -0800 Subject: [PATCH] vold: Don't fail to return path if volume isn't mounted Signed-off-by: San Mehat --- VolumeManager.cpp | 5 ----- 1 file changed, 5 deletions(-) diff --git a/VolumeManager.cpp b/VolumeManager.cpp index 4b3342e..65e2989 100644 --- a/VolumeManager.cpp +++ b/VolumeManager.cpp @@ -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; }