summaryrefslogtreecommitdiffhomepage
path: root/dev/boot/modules/SysChk/SysChk.cc
diff options
context:
space:
mode:
Diffstat (limited to 'dev/boot/modules/SysChk/SysChk.cc')
-rw-r--r--dev/boot/modules/SysChk/SysChk.cc6
1 files changed, 1 insertions, 5 deletions
diff --git a/dev/boot/modules/SysChk/SysChk.cc b/dev/boot/modules/SysChk/SysChk.cc
index 9bdeb38d..16684666 100644
--- a/dev/boot/modules/SysChk/SysChk.cc
+++ b/dev/boot/modules/SysChk/SysChk.cc
@@ -33,12 +33,10 @@ EXTERN_C Int32 SysChkModuleMain(Kernel::HEL::BootInfoHeader* handover)
#if defined(__ATA_PIO__)
fw_init_efi((EfiSystemTable*)handover->f_FirmwareCustomTables[1]);
- Boot::BootTextWriter writer;
-
Boot::BDiskFormatFactory<BootDeviceATA> partition_factory;
if (partition_factory.IsPartitionValid())
- return kEfiOk;
+ return kEfiFail;
Boot::BDiskFormatFactory<BootDeviceATA>::BFileDescriptor desc{};
@@ -48,8 +46,6 @@ EXTERN_C Int32 SysChkModuleMain(Kernel::HEL::BootInfoHeader* handover)
partition_factory.Format(kMachineModel, &desc, 1);
- writer.Write(L"BootZ: Partition formatted.\r");
-
if (partition_factory.IsPartitionValid())
return kEfiOk;