diff options
author | Jonathan Wright <jonathan.wright@arm.com> | 2018-04-11 16:02:46 +0100 |
---|---|---|
committer | Jonathan Wright <jonathan.wright@arm.com> | 2018-04-11 16:27:37 +0100 |
commit | 848fffb161c4c48e61ec9b2780848f2db2bda1cf (patch) | |
tree | 7de2acd5df531b927e687721b860be8dec4a7b7d | |
parent | edbdbc17fcf638f01af1089b812989ec3aebc346 (diff) |
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
-rw-r--r-- | lib/irq/irq.c | 6 |
1 files 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)) { |