[PATCH 1/4] powerpc/shared: Fix warnings in i8259 PIC code.

chrisj at rtems.org chrisj at rtems.org
Mon Feb 15 22:45:17 UTC 2021


From: Chris Johns <chrisj at rtems.org>

---
 bsps/powerpc/shared/irq/i8259.c | 6 ------
 1 file changed, 6 deletions(-)

diff --git a/bsps/powerpc/shared/irq/i8259.c b/bsps/powerpc/shared/irq/i8259.c
index 6a80e24946..37cbc360de 100644
--- a/bsps/powerpc/shared/irq/i8259.c
+++ b/bsps/powerpc/shared/irq/i8259.c
@@ -125,8 +125,6 @@ int BSP_irq_enable_at_i8259s(const rtems_irq_number irqLine)
 {
   rtems_interrupt_level level;
   unsigned short        mask;
-  uint8_t               isr;
-  uint8_t               irr;
 
   if (!BSP_i8259s_irq_valid(irqLine))
     return 1;
@@ -138,14 +136,10 @@ int BSP_irq_enable_at_i8259s(const rtems_irq_number irqLine)
 
   if (irqLine < 8)
   {
-    isr = BSP_i8259s_irq_in_service_reg(PIC_MASTER_COMMAND_IO_PORT);
-    irr = BSP_i8259s_irq_int_request_reg(PIC_MASTER_COMMAND_IO_PORT);
     BSP_i8259s_irq_update_master_imr();
   }
   else
   {
-    isr = BSP_i8259s_irq_in_service_reg(PIC_SLAVE_COMMAND_IO_PORT);
-    irr = BSP_i8259s_irq_int_request_reg(PIC_SLAVE_COMMAND_IO_PORT);
     BSP_i8259s_irq_update_slave_imr();
   }
 
-- 
2.24.1



More information about the devel mailing list