bsps/powerpc/gen5200/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.
This commit is contained in:
Joel Sherrill authored and Gedare Bloom committed 2025-12-11 23:53:16 +00:00
1 parent ac55ed87fe
commit 19cc585d2e
1 file changed
+7 -3
+7 -3
View File
@@ -105,9 +105,13 @@ static inline bool is_processor_irq( rtems_vector_number irqLine)
*/
static inline bool is_siu_irq( rtems_vector_number irqLine)
{
return ((irqLine <= BSP_SIU_IRQ_MAX_OFFSET)
&& (irqLine >= BSP_SIU_IRQ_LOWEST_OFFSET));
/*
* The GCC warning -Wtype-limits flagged that the
* ((irqLine <= BSP_SIU_IRQ_MAX_OFFSET) part of the expression was
* not needed because irqLine is unsigned and BSP_SIU_IRQ_MAX_OFFSET
* is 0.
*/
return (irqLine <= BSP_SIU_IRQ_MAX_OFFSET);
}
/*