twrp.cpp: Add braces for fastboot mode
Without brace, only the line until ";" is guarded
Change-Id: I5483840ddcc2731cffa8552ca69730a1a3a47a69
diff --git a/twrp.cpp b/twrp.cpp
index 39de60e..c4b1b40 100644
--- a/twrp.cpp
+++ b/twrp.cpp
@@ -393,10 +393,11 @@
}
#ifdef TW_LOAD_VENDOR_MODULES
- if (startup.Get_Fastboot_Mode())
- android::base::SetProperty("ro.boot.fastboot", "1");
+ if (startup.Get_Fastboot_Mode()) {
+ android::base::SetProperty("ro.boot.fastboot", "1");
PartitionManager.Prepare_Super_Volume(PartitionManager.Find_Partition_By_Path("/vendor"));
PartitionManager.Prepare_Super_Volume(PartitionManager.Find_Partition_By_Path("/vendor_dlkm"));
+ }
KernelModuleLoader::Load_Vendor_Modules();
#endif