diff options
author | Tiezhu Yang <yangtiezhu@loongson.cn> | 2020-06-06 11:50:15 +0200 |
---|---|---|
committer | Marc Zyngier <maz@kernel.org> | 2020-06-27 12:54:21 +0200 |
commit | 3d21f0b4126650a92f2df531a5f3a2d27aa9a09f (patch) | |
tree | f8b0736354444bb3b9659ec3f30ec257e3391812 /drivers/irqchip | |
parent | Linux 5.8-rc2 (diff) | |
download | linux-3d21f0b4126650a92f2df531a5f3a2d27aa9a09f.tar.xz linux-3d21f0b4126650a92f2df531a5f3a2d27aa9a09f.zip |
irqchip/ti-sci-inta: Remove dead code in ti_sci_inta_set_type()
In the function ti_sci_inta_set_type(), the statement "return -EINVAL;"
out of switch case is dead code, remove it.
Fixes: 9f1463b86c13 ("irqchip/ti-sci-inta: Add support for Interrupt Aggregator driver")
Signed-off-by: Tiezhu Yang <yangtiezhu@loongson.cn>
Signed-off-by: Marc Zyngier <maz@kernel.org>
Reviewed-by: Grygorii Strashko <grygorii.strashko@ti.com>
Link: https://lore.kernel.org/r/1591437017-5295-1-git-send-email-yangtiezhu@loongson.cn
Diffstat (limited to 'drivers/irqchip')
-rw-r--r-- | drivers/irqchip/irq-ti-sci-inta.c | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/drivers/irqchip/irq-ti-sci-inta.c b/drivers/irqchip/irq-ti-sci-inta.c index 7e3ebf6ed2cd..c20c9f7f06e0 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 = { |