* [PATCH irqchip-next] drivers/irqchip: remove redundant ret variable
@ 2021-12-15 6:05 cgel.zte
0 siblings, 0 replies; only message in thread
From: cgel.zte @ 2021-12-15 6:05 UTC (permalink / raw)
To: tglx
Cc: maz, matthias.bgg, linux-kernel, linux-arm-kernel,
linux-mediatek, Minghao Chi, Zeal Robot
From: Minghao Chi <chi.minghao@zte.com.cn>
Return value directly instead of taking this
in another redundant variable.
Reported-by: Zeal Robot <zealci@zte.com.cn>
Signed-off-by: Minghao Chi <chi.minghao@zte.com.cn>
---
drivers/irqchip/irq-mtk-cirq.c | 5 +----
1 file changed, 1 insertion(+), 4 deletions(-)
diff --git a/drivers/irqchip/irq-mtk-cirq.c b/drivers/irqchip/irq-mtk-cirq.c
index 9bca0918078e..2f895473d9d3 100644
--- a/drivers/irqchip/irq-mtk-cirq.c
+++ b/drivers/irqchip/irq-mtk-cirq.c
@@ -60,8 +60,6 @@ static void mtk_cirq_unmask(struct irq_data *data)
static int mtk_cirq_set_type(struct irq_data *data, unsigned int type)
{
- int ret;
-
switch (type & IRQ_TYPE_SENSE_MASK) {
case IRQ_TYPE_EDGE_FALLING:
mtk_cirq_write_mask(data, CIRQ_POL_CLR);
@@ -84,8 +82,7 @@ static int mtk_cirq_set_type(struct irq_data *data, unsigned int type)
}
data = data->parent_data;
- ret = data->chip->irq_set_type(data, type);
- return ret;
+ return data->chip->irq_set_type(data, type);
}
static struct irq_chip mtk_cirq_chip = {
--
2.25.1
_______________________________________________
Linux-mediatek mailing list
Linux-mediatek@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-mediatek
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2021-12-15 6:05 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-12-15 6:05 [PATCH irqchip-next] drivers/irqchip: remove redundant ret variable cgel.zte
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).