pinctrl: microchip: Remove redundant clearing of IRQ_TYPE_SENSE_MASK
authorLizhe <sensor1010@163.com>
Fri, 19 May 2023 17:07:16 +0000 (01:07 +0800)
committerLinus Walleij <linus.walleij@linaro.org>
Mon, 29 May 2023 13:07:27 +0000 (15:07 +0200)
Before executing microchip_sgpio_irq_set_type(),
type has already been cleared IRQ_TYPE_SENSE_MASK, see __irq_set_trigger().

Signed-off-by: Lizhe <sensor1010@163.com>
Link: https://lore.kernel.org/r/20230519170716.3459-1-sensor1010@163.com
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
drivers/pinctrl/pinctrl-microchip-sgpio.c

index 4794602..59f232a 100644 (file)
@@ -719,8 +719,6 @@ static void microchip_sgpio_irq_ack(struct irq_data *data)
 
 static int microchip_sgpio_irq_set_type(struct irq_data *data, unsigned int type)
 {
-       type &= IRQ_TYPE_SENSE_MASK;
-
        switch (type) {
        case IRQ_TYPE_EDGE_BOTH:
                irq_set_handler_locked(data, handle_edge_irq);