From 005f209af6c44a55f554fbdb313a44f460303446 Mon Sep 17 00:00:00 2001 From: Joel Sherrill Date: Mon, 24 Nov 2025 17:39:55 -0600 Subject: [PATCH] bsps/powerpc/gen83xx/irq/irq.c: Address type-limits warnings These changes were made to address GCC -Wtype-limits warnings. In this case, the irq was unsigned and there was no need to check it being <= 0. --- bsps/powerpc/gen83xx/irq/irq.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/bsps/powerpc/gen83xx/irq/irq.c b/bsps/powerpc/gen83xx/irq/irq.c index 74c74778ee..6921195a8a 100644 --- a/bsps/powerpc/gen83xx/irq/irq.c +++ b/bsps/powerpc/gen83xx/irq/irq.c @@ -44,7 +44,8 @@ #define MPC83XX_IPIC_VECTOR_NUMBER 92 -#define MPC83XX_IPIC_IS_VALID_VECTOR( vector) ((vector) >= 0 && (vector) < MPC83XX_IPIC_VECTOR_NUMBER) +#define MPC83XX_IPIC_IS_VALID_VECTOR( vector) \ + ((vector) < MPC83XX_IPIC_VECTOR_NUMBER) #define MPC83XX_IPIC_INVALID_MASK_POSITION 255