mirror of
https://gitlab.rtems.org/rtems/rtos/rtems.git
synced 2025-12-13 19:35:21 +08:00
bsps/powerpc/virtex4/include/bsp/irq.h: 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:
committed by
Gedare Bloom
parent
71b2bc55bd
commit
e30fa2a829
@@ -55,9 +55,8 @@
|
||||
#define BSP_PROCESSOR_IRQ_MAX_OFFSET (BSP_PROCESSOR_IRQ_LOWEST_OFFSET\
|
||||
+BSP_PROCESSOR_IRQ_NUMBER-1)
|
||||
|
||||
#define BSP_IS_PROCESSOR_IRQ(irqnum) \
|
||||
(((irqnum) >= BSP_PROCESSOR_IRQ_LOWEST_OFFSET) && \
|
||||
((irqnum) <= BSP_PROCESSOR_IRQ_MAX_OFFSET))
|
||||
#define BSP_IS_PROCESSOR_IRQ(irqnum) \
|
||||
((irqnum) <= BSP_PROCESSOR_IRQ_MAX_OFFSET)
|
||||
|
||||
/*
|
||||
* Summary
|
||||
@@ -66,7 +65,7 @@
|
||||
#define BSP_LOWEST_OFFSET BSP_PROCESSOR_IRQ_LOWEST_OFFSET
|
||||
#define BSP_MAX_OFFSET BSP_PROCESSOR_IRQ_MAX_OFFSET
|
||||
|
||||
#define BSP_IS_VALID_IRQ(irqnum) (BSP_IS_PROCESSOR_IRQ(irqnum))
|
||||
#define BSP_IS_VALID_IRQ(irqnum) BSP_IS_PROCESSOR_IRQ(irqnum)
|
||||
|
||||
#ifndef ASM
|
||||
#ifdef __cplusplus
|
||||
|
||||
Reference in New Issue
Block a user