From 848fffb161c4c48e61ec9b2780848f2db2bda1cf Mon Sep 17 00:00:00 2001 From: Jonathan Wright Date: Wed, 11 Apr 2018 16:02:46 +0100 Subject: lib/irq: remove bug (typo) in tftf_irq_update_handler() Commit I7f7f3c413cafcdc9b7efea42ca361151b8f40982 introduced a typo which was not caught by the CI system before merging. This commit fixes it. Change-Id: I49177b71a6afec77076e956caec449555198d7a5 --- lib/irq/irq.c | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/lib/irq/irq.c b/lib/irq/irq.c index 7fa6837..a221858 100644 --- a/lib/irq/irq.c +++ b/lib/irq/irq.c @@ -142,11 +142,10 @@ static int tftf_irq_update_handler(unsigned int irq_num, { irq_handler_t *cur_handler; int ret = -1; - unsigned int spi_num; cur_handler = get_irq_handler(irq_num); if (IS_PLAT_SPI(irq_num)) - spin_lock(&spin_lock); + spin_lock(&spi_lock); /* * Update the IRQ handler, if the current handler is in the expected @@ -191,7 +190,6 @@ int tftf_irq_handler_dispatcher(void) { unsigned int raw_iar; unsigned int irq_num; - unsigned int spi_num; sgi_data_t sgi_data; irq_handler_t *handler; void *irq_data = NULL; @@ -200,7 +198,7 @@ int tftf_irq_handler_dispatcher(void) /* Acknowledge the interrupt */ irq_num = arm_gic_intr_ack(&raw_iar); - cur_handler = get_irq_handler(irq_num); + handler = get_irq_handler(irq_num); if (IS_PLAT_SPI(irq_num)) { irq_data = &irq_num; } else if (IS_PPI(irq_num)) { -- cgit v1.2.3