am 826bec79: Merge "vold: remove unnecessary code from VolumeManager::unshareVolume()"

Merge commit '826bec79ea253505813d125700a12816e2c3bc0f' into gingerbread-plus-aosp

* commit '826bec79ea253505813d125700a12816e2c3bc0f':
  vold: remove unnecessary code from VolumeManager::unshareVolume()
gugelfrei
Jean-Baptiste Queru 14 years ago committed by Android Git Automerger
commit 582677b50c

@ -1084,14 +1084,7 @@ int VolumeManager::unshareVolume(const char *label, const char *method) {
return -1;
}
dev_t d = v->getDiskDevice();
int fd;
char nodepath[255];
snprintf(nodepath,
sizeof(nodepath), "/dev/block/vold/%d:%d",
MAJOR(d), MINOR(d));
if ((fd = open("/sys/devices/platform/usb_mass_storage/lun0/file", O_WRONLY)) < 0) {
SLOGE("Unable to open ums lunfile (%s)", strerror(errno));
return -1;

Loading…
Cancel
Save