Message ID | c8377398-8835-4e73-a253-03f61928974a@web.de (mailing list archive) |
---|---|
State | New, archived |
Headers | show |
Series | ARM: mvebu: Adjustments for common code in two functions | expand |
diff --git a/arch/arm/mach-mvebu/coherency.c b/arch/arm/mach-mvebu/coherency.c index a6b621ff0b87..262410ccc4bd 100644 --- a/arch/arm/mach-mvebu/coherency.c +++ b/arch/arm/mach-mvebu/coherency.c @@ -137,12 +137,9 @@ static void __init armada_370_coherency_init(struct device_node *np) goto exit; cpu_config_base = of_iomap(cpu_config_np, 0); - if (!cpu_config_base) { - of_node_put(cpu_config_np); - goto exit; - } - of_node_put(cpu_config_np); + if (!cpu_config_base) + goto exit; cpuhp_setup_state_nocalls(CPUHP_AP_ARM_MVEBU_COHERENCY, "arm/mvebu/coherency:starting",