summaryrefslogtreecommitdiffstats
path: root/partitionmanager.cpp
diff options
context:
space:
mode:
authorVojtech Bocek <vbocek@gmail.com>2013-07-25 22:53:02 +0200
committerGerrit Code Review <gerrit@198.50.184.117>2013-08-24 14:56:48 +0200
commitfafb0c541bb4b24515c57251a44d87825eec90fb (patch)
tree9cddb55ceef8912c8fafe618c98147ff6df19ef6 /partitionmanager.cpp
parentClean-up in partitions.hpp (diff)
downloadandroid_bootable_recovery-fafb0c541bb4b24515c57251a44d87825eec90fb.tar
android_bootable_recovery-fafb0c541bb4b24515c57251a44d87825eec90fb.tar.gz
android_bootable_recovery-fafb0c541bb4b24515c57251a44d87825eec90fb.tar.bz2
android_bootable_recovery-fafb0c541bb4b24515c57251a44d87825eec90fb.tar.lz
android_bootable_recovery-fafb0c541bb4b24515c57251a44d87825eec90fb.tar.xz
android_bootable_recovery-fafb0c541bb4b24515c57251a44d87825eec90fb.tar.zst
android_bootable_recovery-fafb0c541bb4b24515c57251a44d87825eec90fb.zip
Diffstat (limited to 'partitionmanager.cpp')
-rw-r--r--partitionmanager.cpp16
1 files changed, 8 insertions, 8 deletions
diff --git a/partitionmanager.cpp b/partitionmanager.cpp
index 71e5e34f3..77cf37e50 100644
--- a/partitionmanager.cpp
+++ b/partitionmanager.cpp
@@ -1104,14 +1104,14 @@ int TWPartitionManager::Wipe_Dalvik_Cache(void) {
}
}
TWPartition* sdext = Find_Partition_By_Path("/sd-ext");
- if (sdext != NULL) {
- if (sdext->Is_Present && sdext->Mount(false)) {
- if (stat("/sd-ext/dalvik-cache", &st) == 0) {
- TWFunc::removeDir("/sd-ext/dalvik-cache", false);
- gui_print("Cleaned: /sd-ext/dalvik-cache...\n");
- }
+ if (sdext && sdext->Is_Present && sdext->Mount(false))
+ {
+ if (stat("/sd-ext/dalvik-cache", &st) == 0)
+ {
+ TWFunc::removeDir("/sd-ext/dalvik-cache", false);
+ gui_print("Cleaned: /sd-ext/dalvik-cache...\n");
}
- }
+ }
gui_print("-- Dalvik Cache Directories Wipe Complete!\n\n");
return true;
}
@@ -1893,4 +1893,4 @@ void TWPartitionManager::Output_Storage_Fstab(void) {
}
}
fclose(fp);
-} \ No newline at end of file
+}