From f29e0ea2a05a8259753639d6c5b54e8415cf2a2a Mon Sep 17 00:00:00 2001 From: Angel Pons Date: Tue, 7 Jul 2020 21:58:58 +0200 Subject: [PATCH] drivers/pc80/pc/i8259c: Drop dead code MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit This code is not even being build-tested. Drop it before it grows moss. Change-Id: I5bafcda2f8958e1ea4467749b40802deebe1cd3a Signed-off-by: Angel Pons Reviewed-on: https://review.coreboot.org/c/coreboot/+/43211 Tested-by: build bot (Jenkins) Reviewed-by: Michael Niewöhner --- src/drivers/pc80/pc/i8259.c | 14 -------------- 1 file changed, 14 deletions(-) diff --git a/src/drivers/pc80/pc/i8259.c b/src/drivers/pc80/pc/i8259.c index 1126f14629..c6aaef34af 100644 --- a/src/drivers/pc80/pc/i8259.c +++ b/src/drivers/pc80/pc/i8259.c @@ -108,18 +108,4 @@ void i8259_configure_irq_trigger(int int_num, int is_level_triggered) /* Write new values */ outb((u8)(int_bits & 0xff), ELCR1); outb((u8)(int_bits >> 8), ELCR2); - -#ifdef PARANOID_IRQ_TRIGGERS - /* Try reading back the new values. This seems like an error - * but it is not. */ - if (inb(ELCR1) != (int_bits & 0xff)) { - printk(BIOS_ERR, "%s: lower order bits are wrong: want 0x%x, got 0x%x\n", - __func__, (int_bits & 0xff), inb(ELCR1)); - } - - if (inb(ELCR2) != (int_bits >> 8)) { - printk(BIOS_ERR, "%s: higher order bits are wrong: want 0x%x, got 0x%x\n", - __func__, (int_bits>>8), inb(ELCR2)); - } -#endif }