Messages in this thread Patch in this message | | | From | Dmitry Osipenko <> | Subject | [PATCH v1 5/5] gpio: max77620: Move variable declaration | Date | Wed, 8 Jul 2020 11:26:34 +0300 |
| |
Let's move the virq variable declaration to a top-level scope just to make the code a bit more visually appealing.
Signed-off-by: Dmitry Osipenko <digetx@gmail.com> --- drivers/gpio/gpio-max77620.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-)
diff --git a/drivers/gpio/gpio-max77620.c b/drivers/gpio/gpio-max77620.c index 8d54bc4307c2..6861980da0d8 100644 --- a/drivers/gpio/gpio-max77620.c +++ b/drivers/gpio/gpio-max77620.c @@ -27,7 +27,7 @@ struct max77620_gpio { static irqreturn_t max77620_gpio_irqhandler(int irq, void *data) { struct max77620_gpio *gpio = data; - unsigned int value, offset; + unsigned int value, offset, virq; unsigned long pending; int err; @@ -42,8 +42,6 @@ static irqreturn_t max77620_gpio_irqhandler(int irq, void *data) return IRQ_NONE; for_each_set_bit(offset, &pending, MAX77620_GPIO_NR) { - unsigned int virq; - virq = irq_find_mapping(gpio->gpio_chip.irq.domain, offset); handle_nested_irq(virq); } -- 2.26.0
| |