]> git.baikalelectronics.ru Git - kernel.git/commit
irqchip/loongson-htpic: Remove redundant kfree operation
authorTiezhu Yang <yangtiezhu@loongson.cn>
Tue, 7 Jul 2020 02:12:45 +0000 (10:12 +0800)
committerMarc Zyngier <maz@kernel.org>
Fri, 17 Jul 2020 12:41:42 +0000 (13:41 +0100)
commit7146b151ed2bea558ba2298e00b2d1baacf3b43b
tree7c4f85350e577c82e282eebd75717b563048c37f
parentea21307bfe15238fafcb26622f388c22e4558d58
irqchip/loongson-htpic: Remove redundant kfree operation

In the function htpic_of_init(), when kzalloc htpic fails, it should
return -ENOMEM directly, no need to execute "goto" to kfree.

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