]> git.proxmox.com Git - mirror_edk2.git/commit - ArmPkg/Library/CompilerIntrinsicsLib/memcmp_ms.c
ArmPkg: Fix Ecc error 3002 in CompilerIntrinsicsLib
authorPierre Gondois <Pierre.Gondois@arm.com>
Thu, 10 Dec 2020 10:11:59 +0000 (10:11 +0000)
committermergify[bot] <37929162+mergify[bot]@users.noreply.github.com>
Wed, 6 Jan 2021 16:22:54 +0000 (16:22 +0000)
commit53aabb978e133d1c58fd60c693eecf836a8efe38
treeb70c0cdb70bafccb7710d985092841b324f2fcd6
parente3fe63ddebfb673b01ced64ce8091b54d65ec053
ArmPkg: Fix Ecc error 3002 in CompilerIntrinsicsLib

This patch fixes the following Ecc reported error:
Non-Boolean comparisons should use a compare operator
(==, !=, >, < >=, <=)

Brackets are also added to comply to with the coding
standard.

Signed-off-by: Pierre Gondois <Pierre.Gondois@arm.com>
Reviewed-by: Ard Biesheuvel <ard.biesheuvel@arm.com>
ArmPkg/Library/CompilerIntrinsicsLib/memcmp_ms.c
ArmPkg/Library/CompilerIntrinsicsLib/memcpy.c
ArmPkg/Library/CompilerIntrinsicsLib/memcpy_ms.c
ArmPkg/Library/CompilerIntrinsicsLib/memmove_ms.c
ArmPkg/Library/CompilerIntrinsicsLib/memset.c
ArmPkg/Library/CompilerIntrinsicsLib/memset_ms.c