Commit 6609ed14 authored by Julia Lawall's avatar Julia Lawall Committed by Michael Ellerman

powerpc/gamecube/wii: delete unneeded test before of_node_put

Simplify the error path to avoid calling of_node_put when it is not needed.
Signed-off-by: default avatarJulia Lawall <Julia.Lawall@lip6.fr>
Signed-off-by: default avatarMichael Ellerman <mpe@ellerman.id.au>
parent 498b6514
...@@ -247,7 +247,7 @@ void __init ug_udbg_init(void) ...@@ -247,7 +247,7 @@ void __init ug_udbg_init(void)
np = of_find_compatible_node(NULL, NULL, "nintendo,flipper-exi"); np = of_find_compatible_node(NULL, NULL, "nintendo,flipper-exi");
if (!np) { if (!np) {
udbg_printf("%s: EXI node not found\n", __func__); udbg_printf("%s: EXI node not found\n", __func__);
goto done; goto out;
} }
exi_io_base = ug_udbg_setup_exi_io_base(np); exi_io_base = ug_udbg_setup_exi_io_base(np);
...@@ -267,8 +267,8 @@ void __init ug_udbg_init(void) ...@@ -267,8 +267,8 @@ void __init ug_udbg_init(void)
} }
done: done:
if (np) of_node_put(np);
of_node_put(np); out:
return; return;
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment