bsps/arm/edb7312/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
2025-11-25 08:45:33 -06:00
committed by Gedare Bloom
parent 089a16b6e8
commit ac55ed87fe

View File

@@ -86,7 +86,11 @@ rtems_status_code bsp_interrupt_vector_enable(rtems_vector_number vector)
{
bsp_interrupt_assert(bsp_interrupt_is_valid_vector(vector));
if(vector >= BSP_EXTFIQ && vector <= BSP_SSEOTI)
/*
* BSP_EXTFIQ is 0 and vector is unsigned. There is no need to check
* it for being >= 0. Flag by the GCC -Wtype-limits warning.
*/
if(vector <= BSP_SSEOTI)
{
/* interrupt managed by INTMR1 and INTSR1 */
*EP7312_INTMR1 |= (1 << vector);
@@ -114,7 +118,11 @@ rtems_status_code bsp_interrupt_vector_disable(rtems_vector_number vector)
{
bsp_interrupt_assert(bsp_interrupt_is_valid_vector(vector));
if(vector >= BSP_EXTFIQ && vector <= BSP_SSEOTI)
/*
* BSP_EXTFIQ is 0 and vector is unsigned. There is no need to check
* it for being >= 0. Flag by the GCC -Wtype-limits warning.
*/
if(vector <= BSP_SSEOTI)
{
/* interrupt managed by INTMR1 and INTSR1 */
*EP7312_INTMR1 &= ~(1 << vector);