]> git.baikalelectronics.ru Git - kernel.git/commit
irqchip/loongson-pch-msi: Remove unneeded variable
authorTiezhu Yang <yangtiezhu@loongson.cn>
Tue, 7 Jul 2020 02:12:50 +0000 (10:12 +0800)
committerMarc Zyngier <maz@kernel.org>
Fri, 17 Jul 2020 12:41:42 +0000 (13:41 +0100)
commit8d3b43c36fb9e3ed1c361623cdd877b13d7a64d5
tree2e3223ebcf79d9908056d71ba3ad22b400be07e8
parent2039e573d9d949cbb0306441a996e8b78f247de8
irqchip/loongson-pch-msi: Remove unneeded variable

irq_domain_alloc_irqs_parent() returns 0 on success and non-zero value
on failure, it is redudant to check its non-zero return value and then
return it, so just remove the variable "ret" and return directly in the
function pch_msi_parent_domain_alloc().

Signed-off-by: Tiezhu Yang <yangtiezhu@loongson.cn>
Signed-off-by: Marc Zyngier <maz@kernel.org>
Link: https://lore.kernel.org/r/1594087972-21715-7-git-send-email-yangtiezhu@loongson.cn
drivers/irqchip/irq-loongson-pch-msi.c