diff options
author | kuqin12 <42554914+kuqin12@users.noreply.github.com> | 2024-08-01 13:48:44 -0700 |
---|---|---|
committer | mergify[bot] <37929162+mergify[bot]@users.noreply.github.com> | 2024-10-16 08:18:16 +0000 |
commit | d44b82270b6b1589cc2850fde24a3686cb5ef779 (patch) | |
tree | 9df8e1e41f452f2e0a6430ca7cd3293b887daa3f | |
parent | a232e0cd2fe2bb882a5dd0cafe322a2899a44d51 (diff) | |
download | edk2-d44b82270b6b1589cc2850fde24a3686cb5ef779.tar.gz |
ArmPkg: CodeQL Fixes.
Makes changes to comply with alerts raised by CodeQL.
The issues here fall into the following category:
1. unsigned-comparison-zero
Signed-off-by: Raymond Diaz <raymonddiaz@microsoft.com>
-rw-r--r-- | ArmPkg/Drivers/ArmGic/ArmGicLib.c | 8 | ||||
-rw-r--r-- | ArmPkg/Include/Library/ArmGicLib.h | 8 |
2 files changed, 8 insertions, 8 deletions
diff --git a/ArmPkg/Drivers/ArmGic/ArmGicLib.c b/ArmPkg/Drivers/ArmGic/ArmGicLib.c index 7f4bb248fc..f49a376b14 100644 --- a/ArmPkg/Drivers/ArmGic/ArmGicLib.c +++ b/ArmPkg/Drivers/ArmGic/ArmGicLib.c @@ -225,10 +225,10 @@ ArmGicEndOfInterrupt ( VOID
EFIAPI
ArmGicSetInterruptPriority (
- IN UINTN GicDistributorBase,
- IN UINTN GicRedistributorBase,
- IN UINTN Source,
- IN UINTN Priority
+ IN UINTN GicDistributorBase,
+ IN UINTN GicRedistributorBase,
+ IN UINTN Source,
+ IN UINT32 Priority
)
{
UINT32 RegOffset;
diff --git a/ArmPkg/Include/Library/ArmGicLib.h b/ArmPkg/Include/Library/ArmGicLib.h index 93ce8aeb19..32a06485f9 100644 --- a/ArmPkg/Include/Library/ArmGicLib.h +++ b/ArmPkg/Include/Library/ArmGicLib.h @@ -210,10 +210,10 @@ ArmGicSetPriorityMask ( VOID
EFIAPI
ArmGicSetInterruptPriority (
- IN UINTN GicDistributorBase,
- IN UINTN GicRedistributorBase,
- IN UINTN Source,
- IN UINTN Priority
+ IN UINTN GicDistributorBase,
+ IN UINTN GicRedistributorBase,
+ IN UINTN Source,
+ IN UINT32 Priority
);
VOID
|