summaryrefslogtreecommitdiffstats
path: root/FmpDevicePkg
diff options
context:
space:
mode:
authorStar Zeng <star.zeng@intel.com>2018-07-28 09:57:01 +0800
committerKinney, Michael D <michael.d.kinney@intel.com>2018-08-02 14:46:19 -0700
commit0760f5fe96509ed8510cfe2ecab9305859e6f368 (patch)
tree9528151b0f439eaaff4f12a21edab6e1fca2a2d8 /FmpDevicePkg
parentf1a921cab2b8d5ca587059795ff57d9fc92b8995 (diff)
downloadedk2-0760f5fe96509ed8510cfe2ecab9305859e6f368.tar.gz
edk2-0760f5fe96509ed8510cfe2ecab9305859e6f368.tar.bz2
edk2-0760f5fe96509ed8510cfe2ecab9305859e6f368.zip
FmpDevicePkg FmpDxe: Add comment in mFmpDeviceLocked's declaration
Add comment in mFmpDeviceLocked's declaration to make it more clear. Cc: Michael D Kinney <michael.d.kinney@intel.com> Contributed-under: TianoCore Contribution Agreement 1.1 Signed-off-by: Star Zeng <star.zeng@intel.com> Reviewed-by: Michael D Kinney <michael.d.kinney@intel.com>
Diffstat (limited to 'FmpDevicePkg')
-rw-r--r--FmpDevicePkg/FmpDxe/FmpDxe.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/FmpDevicePkg/FmpDxe/FmpDxe.c b/FmpDevicePkg/FmpDxe/FmpDxe.c
index 3544afd3de..fb02e34f70 100644
--- a/FmpDevicePkg/FmpDxe/FmpDxe.c
+++ b/FmpDevicePkg/FmpDxe/FmpDxe.c
@@ -89,6 +89,13 @@ UINT64 mImageId = 0x1;
CHAR16 *mVersionName = NULL;
EFI_EVENT mFmpDeviceLockEvent;
+//
+// Indicates if an attempt has been made to lock a
+// FLASH storage device by calling FmpDeviceLock().
+// A FLASH storage device may not support being locked,
+// so this variable is set to TRUE even if FmpDeviceLock()
+// returns an error.
+//
BOOLEAN mFmpDeviceLocked = FALSE;
/**