mirror of
https://gitlab.rtems.org/rtems/rtos/rtems.git
synced 2026-11-18 01:04:56 +08:00
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:
1 parent
ac55ed87fe
commit
19cc585d2e
1 file changed
+7
-3
@@ -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);
|
||||
}
|
||||
|
||||
/*
|
||||
|
||||
Reference in new issue
Block a user