summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorVu Nguyen <vunguyen@os.amperecomputing.com>2021-06-30 08:41:21 +0700
committermergify[bot] <37929162+mergify[bot]@users.noreply.github.com>2023-05-08 13:12:01 +0000
commit05762bd2e0f695e1496e37e1613297be47136db1 (patch)
tree9d64eba9d3e0c6dc7707502dba2404c9e4ff53b5
parentc580e27efcb799c8afa0ab5eac10f359a680f1cd (diff)
downloadedk2-05762bd2e0f695e1496e37e1613297be47136db1.tar.gz
edk2-05762bd2e0f695e1496e37e1613297be47136db1.tar.bz2
edk2-05762bd2e0f695e1496e37e1613297be47136db1.zip
RedfishPkg: Fix condition checking of error status
This change fixes condition checking of error status, the condition should be compared with TRUE status to be identical with an error message. Signed-off-by: Minh Nguyen <minhnguyen1@os.amperecomputing.com> Cc: Abner Chang <abner.chang@amd.com> Cc: Igor Kulchytskyy <igork@ami.com> Cc: Nick Ramirez <nramirez@nvidia.com> Reviewed-by: Nickle Wang <nicklew@nvidia.com>
-rw-r--r--RedfishPkg/RedfishDiscoverDxe/RedfishDiscoverDxe.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/RedfishPkg/RedfishDiscoverDxe/RedfishDiscoverDxe.c b/RedfishPkg/RedfishDiscoverDxe/RedfishDiscoverDxe.c
index 0900a2479e..1470274881 100644
--- a/RedfishPkg/RedfishDiscoverDxe/RedfishDiscoverDxe.c
+++ b/RedfishPkg/RedfishDiscoverDxe/RedfishDiscoverDxe.c
@@ -5,6 +5,7 @@
(C) Copyright 2021 Hewlett Packard Enterprise Development LP<BR>
Copyright (c) 2022, AMD Incorporated. All rights reserved.
Copyright (c) 2023, NVIDIA CORPORATION & AFFILIATES. All rights reserved.
+ Copyright (c) 2023, Ampere Computing LLC. All rights reserved.<BR>
SPDX-License-Identifier: BSD-2-Clause-Patent
@@ -926,7 +927,7 @@ AddAndSignalNewRedfishService (
}
Status = gBS->SignalEvent (Instance->DiscoverToken->Event);
- if (!EFI_ERROR (Status)) {
+ if (EFI_ERROR (Status)) {
DEBUG ((DEBUG_ERROR, "%a:No event to signal!\n", __func__));
}
}