]> git.proxmox.com Git - mirror_edk2.git/blobdiff - EdkModulePkg/Universal/StatusCode/Dxe/Common/DxeStatusCodeCommon.c
Update Coding style of status code.
[mirror_edk2.git] / EdkModulePkg / Universal / StatusCode / Dxe / Common / DxeStatusCodeCommon.c
index 730a231c0bef0162038d8725eddde99b6e9f87d2..2468078d85cfc67ee8ceaec9f7125d7361c9979e 100644 (file)
@@ -149,7 +149,7 @@ ReportDispatcher (
   // Use atom operation to avoid the reentant of report.\r
   // If current status is not zero, then the function is reentrancy.\r
   //\r
-  if (InterlockedCompareExchange32 (&gDxeStatusCode.StatusCodeNestStatus, 0, 1)) {\r
+  if (1 == InterlockedCompareExchange32 (&gDxeStatusCode.StatusCodeNestStatus, 0, 1)) {\r
     return EFI_DEVICE_ERROR;\r
   }\r
 \r