This patch fixes the following Ecc reported error:
Non-Boolean comparisons should use a compare operator
(==, !=, >, < >=, <=)
Signed-off-by: Pierre Gondois <Pierre.Gondois@arm.com>
Reviewed-by: Ard Biesheuvel <ard.biesheuvel@arm.com>
/** @file\r
\r
- Copyright (c) 2016-2019, ARM Limited. All rights reserved.\r
+ Copyright (c) 2016-2021, Arm Limited. All rights reserved.<BR>\r
\r
SPDX-License-Identifier: BSD-2-Clause-Patent\r
\r
sizeof (CommunicateHeader->MessageLength);\r
\r
// If the length of the CommBuffer is 0 then return the expected length.\r
- if (CommSize) {\r
+ if (CommSize != 0) {\r
// This case can be used by the consumer of this driver to find out the\r
// max size that can be used for allocating CommBuffer.\r
if ((*CommSize == 0) ||\r