aboutsummaryrefslogtreecommitdiff
path: root/drivers/irqchip/irq-loongson-htpic.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/irqchip/irq-loongson-htpic.c')
-rw-r--r--drivers/irqchip/irq-loongson-htpic.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/drivers/irqchip/irq-loongson-htpic.c b/drivers/irqchip/irq-loongson-htpic.c
index dd018c22ea83..63f72803c8c4 100644
--- a/drivers/irqchip/irq-loongson-htpic.c
+++ b/drivers/irqchip/irq-loongson-htpic.c
@@ -93,10 +93,8 @@ int __init htpic_of_init(struct device_node *node, struct device_node *parent)
}
htpic = kzalloc(sizeof(*htpic), GFP_KERNEL);
- if (!htpic) {
- err = -ENOMEM;
- goto out_free;
- }
+ if (!htpic)
+ return -ENOMEM;
htpic->base = of_iomap(node, 0);
if (!htpic->base) {