vold: remove unnecessary code from VolumeManager::unshareVolume()
Signed-off-by: Seth Forshee <seth.forshee@garmin.com>
diff --git a/VolumeManager.cpp b/VolumeManager.cpp
index 8a70c37..2ff5527 100644
--- a/VolumeManager.cpp
+++ b/VolumeManager.cpp
@@ -841,14 +841,7 @@
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;