Messages in this thread Patch in this message | | | From | Tiezhu Yang <> | Subject | [PATCH 1/3] irqchip/ti-sci-inta: Remove dead code in ti_sci_inta_set_type() | Date | Sat, 6 Jun 2020 17:50:15 +0800 |
| |
In the function ti_sci_inta_set_type(), the statement "return -EINVAL;" out of switch case is dead code, remove it.
Signed-off-by: Tiezhu Yang <yangtiezhu@loongson.cn> --- drivers/irqchip/irq-ti-sci-inta.c | 2 -- 1 file changed, 2 deletions(-)
diff --git a/drivers/irqchip/irq-ti-sci-inta.c b/drivers/irqchip/irq-ti-sci-inta.c index 7e3ebf6..c20c9f7 100644 --- a/drivers/irqchip/irq-ti-sci-inta.c +++ b/drivers/irqchip/irq-ti-sci-inta.c @@ -433,8 +433,6 @@ static int ti_sci_inta_set_type(struct irq_data *data, unsigned int type) default: return -EINVAL; } - - return -EINVAL; } static struct irq_chip ti_sci_inta_irq_chip = { -- 2.1.0
| |