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>
(C) Copyright 2021 Hewlett Packard Enterprise Development LP<BR>\r
Copyright (c) 2022, AMD Incorporated. All rights reserved.\r
Copyright (c) 2023, NVIDIA CORPORATION & AFFILIATES. All rights reserved.\r
+ Copyright (c) 2023, Ampere Computing LLC. All rights reserved.<BR>\r
\r
SPDX-License-Identifier: BSD-2-Clause-Patent\r
\r
}\r
\r
Status = gBS->SignalEvent (Instance->DiscoverToken->Event);\r
- if (!EFI_ERROR (Status)) {\r
+ if (EFI_ERROR (Status)) {\r
DEBUG ((DEBUG_ERROR, "%a:No event to signal!\n", __func__));\r
}\r
}\r