X-Git-Url: https://git.proxmox.com/?a=blobdiff_plain;f=EdkModulePkg%2FUniversal%2FStatusCode%2FDxe%2FCommon%2FDxeStatusCodeCommon.c;h=5bb54a201ee2a6d9f868a7f4267e33fa22ce204a;hb=2934f5b0674d3094b329d9347f9d343ec3395bb3;hp=06a4814375bac22839d2a3604f6403f170b64b82;hpb=a93763b74df753b3e8de6a49eea5cbd1116b2535;p=mirror_edk2.git diff --git a/EdkModulePkg/Universal/StatusCode/Dxe/Common/DxeStatusCodeCommon.c b/EdkModulePkg/Universal/StatusCode/Dxe/Common/DxeStatusCodeCommon.c index 06a4814375..5bb54a201e 100644 --- a/EdkModulePkg/Universal/StatusCode/Dxe/Common/DxeStatusCodeCommon.c +++ b/EdkModulePkg/Universal/StatusCode/Dxe/Common/DxeStatusCodeCommon.c @@ -39,6 +39,9 @@ Type EFI_STATUS_CODE_DATA is defined in "Related Definitions" below. The contents of this data type may have additional GUID-specific data. The standard GUIDs and their associated data structures are defined in the Intel? Platform Innovation Framework for EFI Status Codes Specification. + + @return Always return EFI_SUCCESS. + **/ EFI_STATUS EFIAPI @@ -131,6 +134,9 @@ DxeStatusCodeDriverEntry ( Type EFI_STATUS_CODE_DATA is defined in "Related Definitions" below. The contents of this data type may have additional GUID-specific data. The standard GUIDs and their associated data structures are defined in the Intel? Platform Innovation Framework for EFI Status Codes Specification. + + @return Always return EFI_SUCCESS. + **/ EFI_STATUS EFIAPI @@ -146,7 +152,7 @@ ReportDispatcher ( // Use atom operation to avoid the reentant of report. // If current status is not zero, then the function is reentrancy. // - if (InterlockedCompareExchange32 (&gDxeStatusCode.StatusCodeNestStatus, 0, 1)) { + if (1 == InterlockedCompareExchange32 (&gDxeStatusCode.StatusCodeNestStatus, 0, 1)) { return EFI_DEVICE_ERROR; }