If one of them is not satisfied, FtwWrite may fail.\r
Usually, Spare area only takes one block. That's SpareAreaLength = BlockSize, NumberOfSpareBlock = 1.\r
\r
-Copyright (c) 2006 - 2010, Intel Corporation. All rights reserved.<BR>\r
+Copyright (c) 2006 - 2014, Intel Corporation. All rights reserved.<BR>\r
This program and the accompanying materials \r
are licensed and made available under the terms and conditions of the BSD License \r
which accompanies this distribution. The full text of the license may be found at \r
EFI_FTW_DEVICE *FtwDevice;\r
\r
//\r
- // Just return to avoid install SMM FaultTolerantWriteProtocol again\r
- // if Fault Tolerant Write protocol had been installed.\r
+ // Just return to avoid installing FaultTolerantWriteProtocol again\r
+ // if Fault Tolerant Write protocol has been installed.\r
// \r
Status = gBS->LocateProtocol (\r
&gEfiFaultTolerantWriteProtocolGuid, \r
EFI_STATUS Status;\r
EFI_FTW_DEVICE *FtwDevice;\r
\r
+ FtwDevice = NULL;\r
+\r
//\r
// Allocate private data structure for FTW protocol and do some initialization\r
//\r